Page 2 of 2

Execute rest service on another page

Posted: Mon Mar 11, 2013 2:21 pm
by Emmz

Its all done in Tiggzi.
When registered get these values.
code
var devID = localStorage.getItem('pushNotificationDeviceID');
var mytoken = localStorage.getItem('pushNotificationToken');
/code
Add your own register to your server Rest service. Then call the server php and send the Device ID.
Just do not call registration every time app is run. Instead maybe get new key one a month or week and send to php script on server.


Execute rest service on another page

Posted: Mon Mar 11, 2013 2:44 pm
by Emmz

Image

This shows the Tiggzi setting used for php I gave you.

Image

Now use this service on the page where you want to register device with your server. And using custom js or map device id from localStorage.getItem('pushNotificationDeviceID');