Local Notifications (ionic native) not working on iOS?


#1

Hi there.

I’m using local notifications (https://ionicframework.com/docs/native/local-notifications/) for my app, and they work just fine on android. However, on iOS the notifications are never shown (regardless if the app is in the foreground or background). The app does however ask for permissions, but even when granted this does not trigger any notifications. I have tried installing a dedicated iOS 10 branch of the plugin (https://github.com/katzer/cordova-plugin-local-notifications#ios10), but even this does not seem to make any difference. I’m using ionic package for building, if that is relevant.

Has anyone had any luck using local notifications for iOS 10?


#2

I’m able to get local notifications working on iOS 10.
However, I’m struggling with forcing the app to ask for permission. It looks like it only asks for permission at the time when the first notification is scheduled.

This is my test notification:

this.localNotifications.schedule({
   text: 'Delayed ILocalNotification',
   at: new Date(new Date().getTime() + 20000)
});

#3

Same problem for me:
“de.appplant.cordova.plugin.local-notification”: “~0.8.4”,
“ionic-angular”: “2.3.0”,
“ionic-native”: “2.4.1”,

It doesn’t give any error also returned true value for permission but is not showed. The same code is working perfect on Android Devices.