Page 1 of 1

mobileGetDeviceToken

Posted: Thu Apr 23, 2015 6:26 pm
by Asha
I'm getting mad :roll:

I have an app working with push notification with no problem on ios... you know all the stuff certificates and the rest. Now I'm porting it to Android and followed all the tutorials, tried all the solutions but still cant get the mobileGetDeviceToken work on my android device, only get empty response... is me? is been an update from google and now it must use a different configuration from livecode to make it work?

Thank so much!! ... sorry if my question is too noob... it looks like I'm one :mrgreen:

Re: mobileGetDeviceToken

Posted: Thu Apr 23, 2015 7:10 pm
by LCNeil
Hi Asha,

This will return empty on Android if registration with the push notification server has not been successful. The following is an excerpt from the LC dictionary which should explain this-

The mobileGetDeviceToken function returns empty until registration for push notifications with the operating system is complete.

As a result, the mobileGetDeviceToken function should be called when you handle the pushNotificationRegistered message.


Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
--

Re: mobileGetDeviceToken

Posted: Thu Apr 23, 2015 7:44 pm
by Asha
Thanks Neil Roger!! :D

Finally it comes that was that mobile :roll: , old one I have rooted and with custom room on it .. I tried with a android tablet i have and I get the token with no problem at all :P

Thank you soo much for your fast help!