-
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
iOS 10 notification problem #1096
Comments
Even I am facing the same issue. I am using Ionic and notifications are not getting scheduled for iOS 10. Do i need to use the new fork temporarily https://github.com/acianti/cordova-plugin-local-notification.? |
I too facing same issue, working on ionic App with local notification. any workaround to use deprecated UILocation or update in the plugin itself? |
@sumedh908 @gaurangpatel I have fixed the issue on iOS 10 and created the PR - #1093 |
Thanks @spk0611 , I changed the file APPLocalNotification.h and added framework 'UserNotifications', I am getting notification when exit from region but not at enter region. Do I need to make any other changes besides these two? May be issues is related to delay or execution time but not sure. |
👍 +1 |
@katzer any chance to have a clean release for ios 10 ? |
Any updates on release on IOS 10? |
I could find the fix in the ios branch and it seems to work well. cordova plugin add https://github.com/katzer/cordova-plugin-local-notifications#ios10 |
@timelight does this work well on android as well? |
Hi, I've updating my plugin but it doesn't work. I do this : |
Sorry but it doesn't work for me. I don't know why. |
@timelight it works for you ? do you have any example ? Thx. |
Hi i tried the version reference above by EddyVerbruggen, which hasent been merged yet. It works in my ionic app. |
@ddennis do you have a sample code ? I can find the solution, it works on iOS9 but not on iOS10. It's incredible !! Thx |
@sKuD51 I removed the current version with:
And install the telerik version from github:
|
@ddennis that's I've did :-( |
@sKuD51 maybe the problem is in your client code |
@ddennis Maybe, but I can understand why it works fine on iOS 9 and not on iOS10. I've the prompt windows and I click Allow, but that's all, I've no notification. |
@sKuD51: be sure to include a string id…
|
So,
Discovered plugin "cordova-plugin-whitelist" in config.xml. Installing to the project |
you still need to tell it when to fire the notification (the at: option)… like
|
@Tawpie I never used "at option", because I send notification on click (for example). And I've tried with String id => nothing . |
@sKuD51 I think that you’ll still need to specify Be sure to set the fire date far enough in the future so that the fire date doesn’t happen before the software has a chance to complete the actual scheduling with the phone’s operating system. Notifications scheduled in the past won’t fire. Scheduling a notification to fire a second or two into the future should be fairly immediate for the user. Curious though, if you’re wanting to alert the user on-click, is it necessary to use the local notification mechanism?
|
@Tawpie In my app, I'm using notification with ibeacon plugin. When app is in background mode and user enter in a ibeacon region, app send a notification with ibeacon's enter message. This method worked very fine in iOS 9, 8, 7 ... and I repeat, I never used 'at' option, because I send notification in 'live' . |
I understand—that’s an entirely different use case than what I use. But if you can stand a delay of a second or two, you could try setting an I’m not sure of all the changes Apple made in iOS10, but something they did broke the way this plugin worked. Which tells me that in the OS something has changed, so what worked on iOS 7-9 may now be broken. Good luck!
|
@Tawpie Thanks. iOS10 is really a p... of ch.. there are so many changes and some plugins doesn't work. |
FYI, the notification is working on the ios simulator (only in background mode, so get back to device home) but not on a real device :(
|
@lucbonnin I confirmed, notification is only displayed when app is in background, and I tested my app on real device, that's run. |
I am using 10.2 (14C92). On the Simulator 10.2(15C89) I can hear a sound after 5 seconds, but nothing more. |
Hi all. I found the issue. It seems that it is necessary to set the text attribute. I used only the title in the past.
This is no longer working...
|
Would be good to know if that fixes the problem. I'm just doing a build for the simiulator for 10.2.1 to try this out. We use the Rob |
We've just tested this on 10.2 (14C89) and the same code we already use works for us. We made no changes whatsoever for 10.2 (14C89), though we did already have a test attribute. Rob |
Yes, I can confirm that this branch works on iOS 10.x Here is my code for ionic2:
|
Well, I've started asking whether the problem was the plugin or even my phone. Maybe something corrupted or whatever.. But I've tried in simulator and I've got the same behavior: I had similar code to test the notification as you, @suryakand, and the notification is triggered just for the first time. So the app asks for permission, I grant it, receive notification. When I reopen the app.. Nothing. Dude, this is so frustrating! |
I think this thread is getting too confusing with too many people involved with too many different issues. I'd suggest you start a new clean thread with exactly what the problem is with as much information as possible. I wouldn't link to this thread but put all the information in the new issue and work from there. I've tried to follow whats going on in this thread and have now given up and will no longer contribute to this thread as its so difficult to trace whats happening. Rob |
Try this https://forum.ionicframework.com/t/ios-10-strange-problem/63916/6
** , after and later :) |
@faisalalfareza for a moment it gave me hope When I activated it in my xcode, I really though that maybe it was gonna be just that hahhaha Well, nope. It behaves just like I mentioned in my op. Notifications fires just the first time the app opens, when the permissions are asked. I'm gonna run some more tests today and I'll try and find more clues of what is happening. |
@faisalalfareza that thread is centered around push notifications. This thread is centered around local notifications. They are actually two different sets of functionality and handled differently. Enabling push notifications through xcode has no affect on local notifications. |
@billycomic Hey, how have you handled the 64 notifications limit? I think my case is somewhat like yours, where users don't need/always return to the app. I'm trying to schedule 480 notification, but I can't hahaha |
@ammichael Unfortunately, in my case, there is no work around. The 64 notification limit (and split that for each notification) makes it unusable in my use case. I had to make a change in behavior and provide a different code path for iOS only to use the Calendar Cordova Plugin and then I'm able to store repeaters and it actually adds some nice controls from a user standpoint. I love the local notifications plugin, but unfortunately, iOS has cracked down on how they are used. Hope that gives you some direction. |
@billycomic That is really, really bad. If I split the notifications by the limit it would give me 4 days of notifications; far from being enough in my case. I've taken a look at Calendar Plugin, but that won't be useful in my case. Not sure what to do, to be honest |
I'm having troubles getting the plugin to work in iOS. I've installed the iOS10 branch, but the notifications don't appear on iOS10. Any recommendations? |
Please do not hijack threads. If you have a problem raise a new issue using the template in #1188 with code. |
I am able to send local notification , but issue is its not showing in notification center.Its just come and disappear. Any solution for this? |
Hi all |
Don't hijack threads. Raise a new issue using #1188. |
Hey Guys,
|
Try without "every". That option has known problems. And make sure you have the at time set into the future enough that the OS can finish secheduling and you have a chance to quit the app. As you know, by default iOS does not fire local notifications when your app is in the foreground. |
@Tawpie thank you so much :-) |
when application is in background mode ios 10 local notification not working any help? |
I am new to ionic and mobile app, but for you guys reference. i am using https://github.com/katzer/cordova-plugin-local-notifications#ios10 with below code it works fine on ionic 2 with ios10.3.1 (14E304) |
Don't hijack other peoples issues. Raise a new one. |
Please use 0.9-beta for iOS 10 and above. Thanks |
Maybe this is a dump question. Is it possible to use 0.8 and 0.9-beta in the same app to support ios10+ and ios < 10? or what is the best way to support both older and newer ios versions? |
Dear @katzer,
we are using your plugin in hybrid app for a very important costumer and we have a problem with notification in iOS 10 GM using version 0.8.4.
The issues is not display the notification in iPhone devices.
Waiting for your new release that patch this issue I modified then plugin, following the indication present in the issues #1034.
I've created a new fork here: https://github.com/acianti/cordova-plugin-local-notifications, please refer to this to find details of modification done.
Can you please implement as soon as possible the above fix in the new version of plugin. Can you also please inform about possible date in which new plugin would be avaible?
Many thanks in advance for your support!
Best regards,
Andrea
The text was updated successfully, but these errors were encountered: