We are working on an IOS application, we want to implement PUSH NOTIFICATION, I have gone through apple documentation, and asked my Team agent to enable the Push Notification in iOS dev center, they did it seems, its enabled now. I have registered in my application for Push notification like below...
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:
(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];
When I ran the application, didFailToRegisterForRemoteNotificationsWithError got called, I was not able to predict the problem, Is there anything else I can do with certification.
thanks...
For push Notification
What you need to do is, First open the provisioning portal and then go to App IDs section.
Find your app and then there are two options for configuring the Push Notification, one for Development and another for production.
If your app is under testing and development, use development and configure that and in return you will get the certificate. which will be placed on the server who will send push notifications.
Next, then you need to regenerate the provisioning profiles,
Go to the provisioning profiles and modify them and then re-download. You will get Push Notification Enabled Provisioning profiles.
Don't forget to implement this method in the AppDelegate of your project (APP):
- (void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken
{
}
Build your project with the new profile and you are good to go.
For more help check this tutorial.
Even after you've enabled your app id for push, it might take a couple of hours for it to work.