Page 1 of 1

mapping for push notifications

Posted: Mon Jan 27, 2014 1:51 pm
by Sjef Moling

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

mapping for push notifications

Posted: Mon Jan 27, 2014 2:25 pm
by Maryna Brodina

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.


mapping for push notifications

Posted: Mon Jan 27, 2014 2:35 pm
by Sjef Moling

thanks