mobileGetDeviceToken

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Asha
Posts: 21
Joined: Tue Apr 01, 2014 1:02 pm

mobileGetDeviceToken

Post by Asha » Thu Apr 23, 2015 6:26 pm

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:
English is not my mother tongue

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: mobileGetDeviceToken

Post by LCNeil » Thu Apr 23, 2015 7:10 pm

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
--

Asha
Posts: 21
Joined: Tue Apr 01, 2014 1:02 pm

Re: mobileGetDeviceToken

Post by Asha » Thu Apr 23, 2015 7:44 pm

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!
English is not my mother tongue

Post Reply