Differentiating Multiple iOS Notifications

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!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

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

Differentiating Multiple iOS Notifications

Post by Tester2 » Tue Jun 05, 2012 10:53 pm

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?? :shock:

Thanks so much!

-Tester2

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Differentiating Multiple iOS Notifications

Post by Dixie » Tue Jun 05, 2012 11:37 pm

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

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

Re: Differentiating Multiple iOS Notifications

Post by Tester2 » Wed Jun 06, 2012 7:56 pm

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

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Differentiating Multiple iOS Notifications

Post by Dixie » Thu Jun 07, 2012 3:36 pm

When in liveCode... Help Menu > iOS Release Notes

be well

Dixie

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

Re: Differentiating Multiple iOS Notifications

Post by Tester2 » Fri Jun 08, 2012 12:15 am

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

Post Reply