Local Notification - ID Capture

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

Local Notification - ID Capture

Post by Tester2 » Thu Jun 14, 2012 8:38 pm

I assume that every local notification has an ID assigned to it, correct? From using the "mobileGetRegisteredNotifications" function, I'm assuming it is just an incremental number (i.e.: first notification is 1, second is 2, etc)

Based on this, how would I trap that ID into a field or variable.

If I set all my parameters and then create a local notification ( mobileCreateLocalNotification tAlertBody, tAlertButtonMessage, tAlertPayload, tAlertTime, tSound, tBadge )

then the Release Notes say to use "get mobileGetNotificationDetails(tNotificationID)"

However, where/how is this "tNotificationID" set or how can it be captured?

Thanks so much.

-Tester2

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

Re: Local Notification - ID Capture

Post by Dixie » Thu Jun 14, 2012 11:16 pm

Tester 2...

In one of your earlier posts I seem to remember that what you are trying to do is to have a notification sent every 24 hours... I don't think that you will achieve this using 'localNotifications', you are going to have to use 'pushNotifications'...

be well

Dixie

Post Reply