Skip to content
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

Unable to receive local notification on ios 10 #1024

Closed
sparsh0611 opened this issue Jun 27, 2016 · 12 comments
Closed

Unable to receive local notification on ios 10 #1024

sparsh0611 opened this issue Jun 27, 2016 · 12 comments

Comments

@sparsh0611
Copy link

The local notifications are working fine on iOS 9 and lower versions. But, in iOS 10 (beta version), no local notification is received. There's no error while scheduling it and 'schedule' method in APPLocalNotification.m runs without error. But, the notification doesn't get fired.

@ghost
Copy link

ghost commented Jun 29, 2016

Can you send me the code for ios 9. I have issue in ios 9.

@NorthMcCormick
Copy link

I have the same issue. I think it's specifically an iOS 10 beta bug :(

@NorthMcCormick
Copy link

Beta 2 still has the same issue if anyone is wondering

@jokiamo
Copy link
Contributor

jokiamo commented Jul 6, 2016

Important:UILocalNotification is deprecated in iOS 10. Use UNNotificationRequest instead. A UILocalNotification object specifies a notification that an app can schedule for presentation at a specific date and time.

@NorthMcCormick
Copy link

Gah I scoured the docs and didn't see that. So basically this plugin is totally useless at this point? Or do the APIs line up pretty well?

Any recommendations for other plugins guys?

@swamy470
Copy link

#sparsh0611 can you please send me the iOS9 code.

@sparsh0611
Copy link
Author

@gandhiselvarj @swamy470 Here is my working iOS 9 code. But, it won't work in iOS 10 because of deprecation, as mentioned above .

Schedule notification:
cordova.plugins.notification.local.schedule({ id: 1, title: 'title', at: alarmTime, });

On notification receive: (in app.js)
$rootScope.$on('$cordovaPush:notificationReceived', function (event, notification) { if (notification.alert) { navigator.notification.alert(notification.alert); } });

@jokiamo
Copy link
Contributor

jokiamo commented Jul 19, 2016

@malloc32
Copy link

malloc32 commented Jul 21, 2016

For me this update does not work properly, see this post if you have problems too.
post

@kishorekumarek
Copy link

Deprecation doesn't mean that it wont work, isn't it? I too face the problem. I think the way iOS handled localNotifications have changed that's why it affects UILocalNotifications. #pureAssumptions

@rwillett
Copy link
Collaborator

Is this still an issue? Its over six months old. It also refers to a Beta of IOS10.

We have IOS10 working.

@rwillett
Copy link
Collaborator

rwillett commented Mar 5, 2017

The code does work in IOS10. Suspect this is an issue with Beta version of IOS10.

Now closed as no update from original poster.

@rwillett rwillett closed this as completed Mar 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants