Fórum

Register device without mobile SDK

thumbnail
Charalampos Chrysikopoulos, modificado 6 Anos atrás.

Register device without mobile SDK

Junior Member Postagens: 79 Data de Entrada: 09/12/11 Postagens Recentes
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, modificado 6 Anos atrás.

RE: Register device without mobile SDK

Junior Member Postagens: 79 Data de Entrada: 09/12/11 Postagens Recentes
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, modificado 6 Anos atrás.

RE: Register device without mobile SDK (Resposta)

Expert Postagens: 375 Data de Entrada: 21/04/09 Postagens Recentes
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.