-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notifications don't work on iOS 10.2 #1205
Comments
Where is the code that outputs It looks like you have not given permission for notifications. What are your settings in the Settings panel? I know that this code works with XCode 10.2 simulator as issue #1192 shows our code working in the Xcode 10.2 simulator :) Rob |
Founds the issue after better debugging. There was something wrong with the plugin and cordova. The plugin wasn't installed correctly. After running the iOS build with
the local-notifications.js was missing. So reinstalled the plugin and now its working. Strange that it worked on Android but not on iOS seems like just the iOS installation failed. The error in my ionic v2 project was something with my code. Now its working there too! Thank you Rob |
Thats good to know. It could be how you installed the plugins. I would have expected an error in Xcode though. We virtually never use the simulator as it doesn't support
Be very careful with emulation as your code WILL work differently on a real iPhone. Rob |
|
Your Environment
Plugin version: de.appplant.cordova.plugin.local-notification 0.8.5-dev "LocalNotification" (#ios10)
Platform: iOS
OS version: 10.2
Device manufacturer / model: iPhone 7 XCode emulator
Cordova version (cordova -v): 6.4.0
Cordova platform version (cordova platform ls):
Plugin config
Expected Behavior
should fire a notification on iOS or ask for permission.
Actual Behavior
Does not ask for permission and does not fire any notification. Once I got it to ask for permission but after a reset of the simulator it's not working anymore.
What were you trying to do?
There is a controller with $cordovaLocalNotification, $ionicPlatform and $scope
There are 3 buttons to get
Button 1:
Android is working perfect! The Notification is fires and everything works flawless.
iOS does not even ask for permission. This is the log XCode shows:
EDIT:
I even tried this with a ionic v2 with the native implementation of local notifications (which is v0.8.4), but even these doesn't work on iOS 10.2 :(
The text was updated successfully, but these errors were encountered: