Push Notification question

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Neurox66
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 120
Joined: Tue May 22, 2012 1:57 pm
Contact:

Push Notification question

Post by Neurox66 » Thu Feb 20, 2014 6:02 pm

Hello,
I've finally added Push Notification to my App
Is it possible to retrieve the contents of Push already read ?
I tried to do so, unfortunately it does not work.

Code: Select all

    iphoneGetNotificationBadgeValue get () 
    put it into tBadge 
   
    if tBadge> 0 then 
        iphoneSetNotificationBadgeValue 0 
       dispatch "pushNotificationReceived" 
    end if
Thanks,
Paolo
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for printers | www.4pellicole.it

Neurox66
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 120
Joined: Tue May 22, 2012 1:57 pm
Contact:

Re: Push Notification question

Post by Neurox66 » Fri Feb 21, 2014 5:41 pm

I've solved it. :D
Saving the push with token in the database on the server.
If the badge value > 0 go to read the message on the server and delete it.

Paolo
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for printers | www.4pellicole.it

Post Reply