留言板
Register device without mobile SDK
Charalampos Chrysikopoulos,修改在6 年前。
Register device without mobile SDK
Junior Member 帖子: 79 加入日期: 11-12-9 最近的帖子
Hello,
I am using nativescript without the liferay mobile SDK, and wanted to use push notifications through liferay 6.2.
The mobile app is communicating with liferay with json calls. I decided after the successful authentication in liferay, I would register the device for push notifications. But the add device methods needs a token, which I don't have. From where is that token coming from?
Thank you in advance,
Harry.
I am using nativescript without the liferay mobile SDK, and wanted to use push notifications through liferay 6.2.
The mobile app is communicating with liferay with json calls. I decided after the successful authentication in liferay, I would register the device for push notifications. But the add device methods needs a token, which I don't have. From where is that token coming from?
Thank you in advance,
Harry.
Charalampos Chrysikopoulos,修改在6 年前。
RE: Register device without mobile SDK
Junior Member 帖子: 79 加入日期: 11-12-9 最近的帖子
After searching a little, I think I got it. The token is a string returned by the push provider. So, in this case the app should provide liferay with this token, after it has registered itself to a provider.
Denis Signoretto,修改在6 年前。
RE: Register device without mobile SDK (答复)
Expert 帖子: 375 加入日期: 09-4-21 最近的帖子
Hi Charalampos,
I can confirm the token is the "push device id token" you obtain from the push service you are registering on (it depends on LiferayPush Supported Platforms: APN, GCM, Google Firebase, Twillio, etc.).
Bye,
Denis.
I can confirm the token is the "push device id token" you obtain from the push service you are registering on (it depends on LiferayPush Supported Platforms: APN, GCM, Google Firebase, Twillio, etc.).
Bye,
Denis.