I develop application for APNS. My code is work fine with one device and i got apple push notification for device as well. But when i run that application for device i got device token and through that token i will able to do all process.
Now my problem is when i install same app for other device, the following methods could not work.
application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
application:(UIApplication *)app didFailToRegisterForRemoteNotificationsWithError:(NSError *)err
That means i did not get device token for other device. But yes when i install application for that device that app registered in notification section in device setting.
What to do and what i missed that why those method can not run for other devices with valid configured pro-vising profile?
I got my problem… Actually i not checking internet connection of other devices is proper or not. Due to internet connection problem those methods are not been worked.
So thanks to apple provide me information through this
http://developer.apple.com/library/ios/#technotes/tn2265/_index.html link provide me much information.