Getting into LiveCode for iOS? Ask your questions here.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
Michael_A
- Posts: 13
- Joined: Mon Aug 27, 2012 3:39 pm
Post
by Michael_A » Mon Aug 27, 2012 4:18 pm
Hello,
In a tutorial I find this code but it return me nothing?
Code: Select all
mobileGetDeviceToken
answer the result with "Okay"
Thanks
-
Klaus
- Posts: 14177
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Mon Aug 27, 2012 4:58 pm
Hi Michael,
welcome to the forum!
What tutorial?
Never heard of "mobileGetDeviceToken" and nothing to find in the release notes or in the dictionary!?
Best
Klaus
-
Michael_A
- Posts: 13
- Joined: Mon Aug 27, 2012 3:39 pm
Post
by Michael_A » Mon Aug 27, 2012 6:43 pm
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
-
Klaus
- Posts: 14177
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Mon Aug 27, 2012 7:09 pm
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
-
Michael_A
- Posts: 13
- Joined: Mon Aug 27, 2012 3:39 pm
Post
by Michael_A » Mon Aug 27, 2012 9:15 pm
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?)
-
jacque
- VIP Livecode Opensource Backer

- Posts: 7389
- Joined: Sat Apr 08, 2006 8:31 pm
-
Contact:
Post
by jacque » Tue Aug 28, 2012 4:47 am
Have you configured your app in statndalone settings to handle push notifications?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
-
Michael_A
- Posts: 13
- Joined: Mon Aug 27, 2012 3:39 pm
Post
by Michael_A » Thu Aug 30, 2012 11:51 am
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 ...)