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?