Foren

Register device without mobile SDK

thumbnail
Charalampos Chrysikopoulos, geändert vor 6 Jahren.

Register device without mobile SDK

Junior Member Beiträge: 79 Beitrittsdatum: 09.12.11 Neueste Beiträge
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.
thumbnail
Charalampos Chrysikopoulos, geändert vor 6 Jahren.

RE: Register device without mobile SDK

Junior Member Beiträge: 79 Beitrittsdatum: 09.12.11 Neueste Beiträge
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.
thumbnail
Denis Signoretto, geändert vor 6 Jahren.

RE: Register device without mobile SDK (Antwort)

Expert Beiträge: 375 Beitrittsdatum: 21.04.09 Neueste Beiträge
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.