I was testing my iOS app I found one interesting thing that even my phone is in airplane mode and I have also switched off WIFI, my app is able to receive the the Device Token after registering for push notification.
I have also tried even after removing app and its associated certificate from the iPhone.
but got same results.
How is it possible, any idea ?
thanks in advance.
This is from the APNS programming guide :
It implies that if your application is already registered for push notifications, calling the
registerForRemoteNotificationTypes
doesn't access the APNS server.The fact that you uninstalled the app doesn't unregister it from APNS. You can prove that to yourself by calling the feedback service immediately after uninstalling the app. You wouldn't get the device token from the feedback service in this case, because the APN service doesn't know you uninstalled the app. Only if you send notifications to the device after uninstalling the app, the APN service will know the app was uninstalled.