I get a new iPhone and when i tried to test it with a Xcode project with push notifications , it doesn't get token , always failed to get token , i think this because when i was creating the certificate i didn't mark on the device , now i want to add this device to the testing and get token what i should do ??
- (void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken
{
NSLog(@"My token is: %@", deviceToken);
}
- (void)application:(UIApplication*)application didFailToRegisterForRemoteNotificationsWithError:(NSError*)error
{
NSLog(@"Failed to get token, error: %@", error);
}