After following all the instructions here, didReceiveLocalNotification is never called.
- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification
{
[RCTPushNotificationManager didReceiveLocalNotification:notification];
}
This causes the listeners to never fire:
PushNotificationIOS.addEventListener('localNotification', () => {
console.log("never called")
});
The local notifications are received normally and didReceiveNotificationResponse is called, but PushNotificationiOS does not support didReceiveNotificationResponse.
How do I use React native's PushNotificationiOS library for iOS 11? It appears to rely on didReceiveLocalNotification being called, but it has been deprecated for a while now and is not working at all on iOS 11. Am I missing something?