I am new to this topic and require some guidance on implementing Apple Push Notification in my application. I created my appID and also set up Apple Push Notification for the same. I downloaded the preparation profile and installed the application on iphone. I also wrote the following code provided by Apple documentation
- (void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)devToken { const void *devTokenBytes = [devToken bytes]; NSLog(@"devToken=%@",devTokenBytes);
I want to know what I need to write on the server side. When I run the code, it says that the device is not registered. How to register an application for push notification.
Can anyone help me with this ...
Any code would be very helpful ...
Thanx in advance ...
objective-c iphone apple-push-notifications
Atulkumar V. Jain
source share