Closed sparsh0611 closed 7 years ago
Can you send me the code for ios 9. I have issue in ios 9.
I have the same issue. I think it's specifically an iOS 10 beta bug :(
Beta 2 still has the same issue if anyone is wondering
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.
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?
@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); } });
For me this update does not work properly, see this post if you have problems too. post
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
Is this still an issue? Its over six months old. It also refers to a Beta of IOS10.
We have IOS10 working.
The code does work in IOS10. Suspect this is an issue with Beta version of IOS10.
Now closed as no update from original poster.
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.