LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
Is there a way to differentiate between Local Notifications?
For example, if I have two local notifications that have been sent to my device but I did not select them immediately (i.e.: they are still waiting to be activated).
I need some parameter, or ID, or variable that will help me differentiate between the two once I activate them.
I think that you are looking for the mobileGetNotificationDetails(notification) function and the mobileGetRegisteredNotifications() command... You can find all the details regarding its use on page 47 of the iOS release notes...
Thanks so much for responding; I am exploring these functions.
I read that in the "mobileGetNotificationDetails(notificationID)" function, the "notificationID" is the ID number of the notification. Is that something that I have to set or does each notification have its own unique ID which can be captured by using that function?
"You can find all the details regarding its use on page 47 of the iOS release notes..."
I could not find the page 47 of iOS release notes you referenced...could you send me a link to the document - maybe I grabbed the wrong one.
Thanks so much for the direction. I found the pages talking about the mobileGetNotificationDetails function.
However, I still can't seem to be able to get it to work properly. If I want to put the "body" of a local notification into a field, would I code the following?:
mobileGetNotificationDetails (tNotificationID)
put mobileGetNotificationDetails (tNotificationID) into tNotificationDetails
put tNotificationsDetails ["body"] into field "TestField"