NSLog(@"push notification in process");
[[UIApplication sharedApplication]registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge|UIRemoteNotificationTypeSound|UIRemoteNotificationTypeAlert)];
Entering above code in appdelegate.m
file in didFinishLaunchingWithOptions:
method
I am getting error message as follows:
Error :
Failed to get token, error: Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" UserInfo=0x20021380
{
NSLocalizedDescription=no valid 'aps-environment' entitlement string found for application
}