steve5588065
Posts: 0
Joined: Tue Feb 26, 2013 6:36 am

read push device token

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

read push device token

[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?

steve5588065
Posts: 0
Joined: Tue Feb 26, 2013 6:36 am

read push device token

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

read push device token

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?

Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

read push device token

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..

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

read push device token

Thank you. We'll test this case

steve5588065
Posts: 0
Joined: Tue Feb 26, 2013 6:36 am

read push device token

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

read push device token

Hello! We are working on it...

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

read push device token

Hello! Could you give us some link where you've found that code also clarify please what's the expected result?

Return to “Issues”