Page 1 of 1

mobileGetDeviceToken (empty?)

Posted: Mon Aug 27, 2012 4:18 pm
by Michael_A
Hello,

In a tutorial I find this code but it return me nothing? :oops:

Code: Select all

mobileGetDeviceToken
answer the result with "Okay"
Thanks

Re: mobileGetDeviceToken (empty?)

Posted: Mon Aug 27, 2012 4:58 pm
by Klaus
Hi Michael,

welcome to the forum! :D

What tutorial?
Never heard of "mobileGetDeviceToken" and nothing to find in the release notes or in the dictionary!?


Best

Klaus

Re: mobileGetDeviceToken (empty?)

Posted: Mon Aug 27, 2012 6:43 pm
by Michael_A
Hi,

Thanks a lot,
I find it in (sory fro XXX I can't post link) :
... lessons.XXX.XXX/m/4069/l/53405
Object : How do I use Push Notifications with iOS?

I found a reference to this function in my dictionary (it s with the version I purchase and installed in july)

I'm new in forum and livecode (I'm Delpi developer), maybee I did something wrong.

Push notification are really the most important feature of my project and I'm blocked on it since 2 days (I have post another topic about it)

Thanks for your help

Re: mobileGetDeviceToken (empty?)

Posted: Mon Aug 27, 2012 7:09 pm
by Klaus
Aha, looks like a typo in the lesson!

Found it in my docs, too!
This is a function, so you need to use it like that:
...
put mobileGetDeviceToken() into tDummy
answer the result with "Okay"
...

Best

Klaus

Re: mobileGetDeviceToken (empty?)

Posted: Mon Aug 27, 2012 9:15 pm
by Michael_A
Thanks,

I tried and it return too a empy string (tested on debug and mobile device)
I tried too
put mobileGetDeviceToken() into field "aField"
(and have a field with this name)
same result.

Maybee it's not supported anymore (then how to get > send token to server for push notification?)

Re: mobileGetDeviceToken (empty?)

Posted: Tue Aug 28, 2012 4:47 am
by jacque
Have you configured your app in statndalone settings to handle push notifications?

Re: mobileGetDeviceToken (empty?)

Posted: Thu Aug 30, 2012 11:51 am
by Michael_A
Thanks,

You are right, I forget in this small project to enable push notification, (I'm new in Livecode), and didn't understand some function are enable only with some option selected ...
It solved too another question / mistake : UDID is not = to the result of mobileGetDeviceToken (then notification doesn't work ...)