I've been looking into testing remote notifications using the simulator and know that starting with Xcode 11.4 beta, we should be able to do that.
The way I'm trying to test this is:
- On the app launching inside didFinishLaunchingWithOptions, I'm doing:
[[UIApplication sharedApplication] registerForRemoteNotifications];
- I've added the callbacks as follows:
- (void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
{
NSLog( @"Succeeded at registering for remote notifications" );
return;
}
- (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error
{
NSLog( @"Failed to register for remote notifications" );
return;
}
I'm hitting the breakpoint in didFailToRegisterForRemoteNotificationsWithError and the error is: remote notifications are not supported in the simulator
Is there a way around it? Am I misunderstanding the feature being supported in XCode 11.4?