[AC-4516] Ti.App.iOS.scheduleLocalNotification not working with iOS 10
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Not Our Bug |
Resolution Date | 2016-09-28T16:26:19.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | ios, ios-10 |
Reporter | Dharshana Jayamaha |
Assignee | Shak Hossain |
Created | 2016-09-28T02:15:26.000+0000 |
Updated | 2016-09-29T03:10:43.000+0000 |
Description
in iOS 10 scheduleLocalNotification are not working
tested bellow code with iOS 9.x and its works as expected.
with TI sdk 5.5 and its working but not with iOS 10
// Some comments here
Ti.App.iOS.scheduleLocalNotification({
date: new Date(new Date().getTime()),
alertBody: "Hello",
alertAction: "Re-Launch!",
badge: 1,
sound:"pop.caf",
});
You need to register the notification-settings beforehand, like state din our [guides](http://docs.appcelerator.com/platform/latest/#!/guide/iOS_Local_Notifications). Full example:
@hans Actually i have register the nofitication-settings beforehand. As i mention this issue only in iOS 10. and I also tested code sample you have posted above in iOS 9 and iOS 10 with TI SDK 5.5 result :: iOS 9, I function works as expected. iOS 10, function not working