I am using push notification in my app and i want to send device token to my server only if deviceToken expired or device not resister on APNS.I can check device is resister or not by iSResisterForRemoteNotification But how can i check my current DeviceToken is Valid or Not.
Asked
Active
Viewed 1,899 times
0
-
This might help you https://stackoverflow.com/questions/21888440/how-to-validate-apple-apn-device-token-wcf-net – Nauman Malik Aug 24 '17 at 12:09
-
There is no expiry for device token. Even if you uninstall the app and install again, the device token will be same for that app in that device. So no need to check for device token expiry. If you restore the OS and install the app again, the device token will change. – Basheer Aug 24 '17 at 12:16
-
@Basheer Ok,If i resirster again and agian then token will not change right? – Rajpal Thakur Aug 24 '17 at 12:30
-
No. it will not change. – Basheer Aug 24 '17 at 13:01