mobileGetNotificationDetails

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Tester2
Posts: 102
Joined: Wed May 18, 2011 7:02 pm

mobileGetNotificationDetails

Post by Tester2 » Wed Jun 06, 2012 8:48 pm

Can someone give me an example of how the mobileGetNotificationDetails function works.

I found the following in the Dictionary:

get mobileGetNotificationDetails(tNotificationID)

put mobileGetNotificationDetails(tID) into tNotificationDetails
put tNotificationDetails["body"] into field "text"

However, I have a few questions...

Say I create two different local notifications with mobileCreateLocalNotification. One is going to go off in 1 minute, and the other in 5 minutes. Once the 5 minute notification pops up and I click it, I use "on localNotificationReceived tMessage" to perform an action. Can I use "get mobileGetNotificationDetails(tNotificationID)" to tell me that notification's ID? (i.e.: It would say "2") Or is the "tNotificationID" something that I need to set?

Sorry if this sounds confusing, I have just been banging my head against a wall trying to figure out how to capture various Notification's IDs and am hoping this is the solution. :?

Thanks a ton!

-Tester2

Post Reply