Page 1 of 6
read push device token
Posted: Sun Mar 10, 2013 8:49 am
by steve5588065
I have set my tiggzi app for push notifications
I have all the certificates from apple
When I install the built app on my iphone I get the message re do you want to allow notifications
For the life of me I can't find how to read the ios Push Notifications Device Token so I can send it to my server and thus use it to send notifications to my app
Does the Page event Push Registration Success return the Device Token and if so how can I access it
Any ideas
Regards
Steve
read push device token
Posted: Sun Mar 10, 2013 12:10 pm
by maxkatz
[quote:]
For the life of me I can't find how to read the ios Push Notifications Device Token so I can send it to my server and thus use it to send notifications to my app
[/quote]
Send to a server or the phone?
read push device token
Posted: Sun Mar 10, 2013 12:59 pm
by steve5588065
Hi Max
Sorted it.
I just use the system localStorage fields pushNotificationDeviceID and pushNotificationToken
Works a treat and I save it back to my sql server db via a json service
do you know how to get the app to display the message if the app was off when the push notification arrives and I click launch in the Notification screen which opens my app
Steve
read push device token
Posted: Mon Mar 11, 2013 12:33 pm
by Maryna Brodina
Hello! It seems you don't have to do any additional steps to make your app display the message (even if app was off when message was sent). Do you have any problems with that?
read push device token
Posted: Mon Mar 11, 2013 2:12 pm
by Emmz
FYI. On Android 2.3.5 Not sure of others. When you touch the push noticifation after arrival. If the App is exited but still in memory, background. It will launch and show the message.
If app is not in memory. It launches but shows undefined for message.
Not a big deal for me just happy to have push..
read push device token
Posted: Mon Mar 11, 2013 2:18 pm
by Maryna Brodina
Thank you. We'll test this case
read push device token
Posted: Tue Mar 12, 2013 1:11 am
by steve5588065
I have found some phonegap code which shows how to access pending Notifiications and also how to clear the Notification Badge icon on the app icon
It appears to be done in the Registration Successful event
In Tiggzi however using the plugin code doesn't work e.g
var pushNotification = window.plugins.pushNotification;
pushNotification.setApplicationIconBadgeNumber(0);
Is there any data passed into the Tiggzi function which allows me to accomplish this
regards
Steve
read push device token
Posted: Tue Mar 12, 2013 1:01 pm
by Maryna Brodina
Hello! We are working on it...
read push device token
Posted: Wed Mar 13, 2013 9:22 am
by Maryna Brodina
Hello! Could you give us some link where you've found that code also clarify please what's the expected result?
read push device token
Posted: Wed Mar 13, 2013 9:51 am
by steve5588065