Sjef Moling
Posts: 0
Joined: Thu Jan 23, 2014 10:00 am

mapping for push notifications

after reading the documentation at http://docs.appery.io/tutorials/sendi... I still have some questions:

  • how to map deviceID and type to service? Where to get these data?
  • when to evoke the services (register, update, unregister)?
Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

mapping for push notifications

Hello!
1) how to map deviceID and type to service - deviceID to localStorage variable pushNotificationDeviceID, type = A for Android, I for iOS
2) when to evoke the services (register, update, unregister) - device is registered automatically. If according to app logic you need to do unregister and then register again - do it when it's needed. Update when you need to update device data, for example user subscribe/unsubscribe from messages.

Sjef Moling
Posts: 0
Joined: Thu Jan 23, 2014 10:00 am

mapping for push notifications

thanks

Return to “Issues”