Suppose I have an Android device Which is successfully registered for PushNotifications using MobileFrist SDK (version 8.0). Say-After 6 months -GCM initiates token refresh!. Will SDK be able to auto sync the push token or do we need to handle this manually?
What is the case with IOS/APNS?
Could you explain the process of token refresh and synchronization ??
The registerDevice API (and the sendDeviceToken API incase of iOS) of MFP Push (available in both the Android and iOS SDKs) registers the device if one is not yet or updates the device if the device token is refreshed / changed. A call to this API from the Android / iOS client application when the app is started will obtain the token for the device from APNS/GCM servers and ensures the registration on the server to be refreshed with right token whenever it changes.
For more info: http://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/notifications/handling-push-notifications/android/ http://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/notifications/handling-push-notifications/ios/