Push notification to specific device
Hi Aeneas,
This answer from Maryna should be helpful: https://getsatisfaction.com/apperyio/...
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hi Aeneas,
This answer from Maryna should be helpful: https://getsatisfaction.com/apperyio/...
Sorry I'm not quite clear. I have set up push notifications and when I opened the app on my phone my device ID was written to the Device database table. How do I also write this same ID to my user table so I can link each device to the user?
Thanks,
Aeneas
Hi Aeneas,
Add localStorage data in a request parameter (http://devcenter.appery.io/documentat...)
of Create service (http://devcenter.appery.io/documentat...).
Run the following code on this parameter:prereturn localStorage.getItem('pushNotificationDeviceID');/pre
THanks but for the device ID to get written to the Devices table is there already a service created for this or do I need to create a separate one and effectively get the Device ID twice? I cannot see any service created on my app to get the Device ID yet it gets into the database. How?
Please disregard last email as the DeviceID is now working correctly from localStorage.
Thanks
Hi Aeneas,
Thank you for the update! Glad you solved it!