-
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
Notification not triggered on ios #1200
Comments
There appears to be issues with every: and at: on IOS 10 with this branch. Pull out the every: and check that it works with the at: first of all. If it works there, then it appears there is a problem. Rob |
Hi Rob, thank you very much for the fast reply! I tested without every - but didnt work too. Any other idea? Thank you! Oleg |
This seems to be an ongoing problem with later versions of IOS 10. AFAIK our code works with the codebase but a lot of other peoples doesn't. We tested it on the IOS simulator for 10.2 a few days ago and it works there. See #1192 for screen shots and #1190 for the actual production code we use. I suspect there is a problem with the plugin and certain versions of IOS but since I'm not the author I can't comment any more on what it might be. I'm at a loss as it works for us. |
Thank you for the information. I searched for other npm-packages and found this https://github.com/dpalou/cordova-plugin-local-notifications With this version it works for me on ios 10 |
OK, lets close this issue down then. Thanks Rob |
Still not working here, I also tried the fork that @OlegWarkentinWeb mentioned. |
Something is wrong in your code. Show some code and also what does defrost mean. |
@rwillett, the code is the same. I did not change anything, I only compiled months later with new updates of the Cordova and the plugins. |
Then something else has changed, e.g. the IOS version. It does look as if the IOS 10.2.1 is causing lots of issues. |
I found the solution. Apparently the problem of freezing was the CSP rules.
|
Ok. Had these changed or had you added the whitelist plugin? |
I already had it on project the whitelist plugin, but must have been updated. So I just changed this line in index.html. |
If we have found the issue lets close this thread down. Thanks Rob |
Closed as no update in three weeks. |
Environment
Plugin version: 0.8.5-dev
Platform: iOS
OS version: 10.0.2
Device manufacturer / model: Apple / ME432DN/A
Cordova version : cli-6.3.0
Actual Behavior
Tell us what happens instead:
Notification not triggered on ios
Steps to Reproduce
Here is my code
` cordova.plugins.notification.local.hasPermission(function (granted) {
if (granted == true) {
schedule();
}
else {
cordova.plugins.notification.local.registerPermission(function (granted) {
if (granted == true) {
schedule();
}
else {
navigator.notification.alert("Keine Berechtigung erteilt!");
}
});
}
});
Context
Can you help me pls? Its for a Client...
Best regards
Oleg
The text was updated successfully, but these errors were encountered: