Closed fvdave closed 9 years ago
Tried out your example but cannot reproduce. Maybe you can debug with xcode whats the reason.
Ok I did some testing today. I had two notifications scheduled, these are the ids: [0,"1"] That first one being a number seems to be the issue; I altered UIApplication+APPLocalNotification.m to convert the id to a string as follows:
- (UILocalNotification*) localNotificationWithId:(NSString*)id
{
NSArray* notifications = self.localNotifications;
for (UILocalNotification* notification in notifications)
{
if ([[NSString stringWithFormat: @"%@", notification.options.id] isEqualToString:id]) {
return notification;
}
}
return NULL;
}
This fix was never merged into master?
Trying to schedule a local notification causes a crash with the following message:
This is the code I'm using:
Even passing an empty object causes a crash. The version of the plugin I'm using is 0.8.1, iOS version 8.2, and cordova version 4.2.0.