Page 1 of 1
Differentiating Multiple iOS Notifications
Posted: Tue Jun 05, 2012 10:53 pm
by Tester2
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.
Any help??
Thanks so much!
-Tester2
Re: Differentiating Multiple iOS Notifications
Posted: Tue Jun 05, 2012 11:37 pm
by Dixie
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...
be well
Dixie
Re: Differentiating Multiple iOS Notifications
Posted: Wed Jun 06, 2012 7:56 pm
by Tester2
Hey Dixie,
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.
-Tester2
Re: Differentiating Multiple iOS Notifications
Posted: Thu Jun 07, 2012 3:36 pm
by Dixie
When in liveCode... Help Menu > iOS Release Notes
be well
Dixie
Re: Differentiating Multiple iOS Notifications
Posted: Fri Jun 08, 2012 12:15 am
by Tester2
Hey Dixie,
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"
What am I missing?
Thanks so much!
-Tester2