I don’t know if something very big is missing here or what Apple is doing. Over the course of a month, we have been dealing with this error notification that the fire is without cause. (Xcode 7.1, iOS9.1)
1. Even when I delete the application from my iPhone, all of it UILocalNotificationscontinues to work for several days later, even if the application is not on the device (!) How can I be sure that this will not happen with our users? Is this just a development bug?
2. When I have an application on the device and I print all notifications with:
UIApplication *app = [UIApplication sharedApplication];
NSArray *eventArray = [app scheduledLocalNotifications];
for (int i=0; i<[eventArray count]; i++)
{
UILocalNotification* oneEvent = [eventArray objectAtIndex:i];
NSLog(@"%@",oneEvent.fireDate);
}
I can see all the days and hours of my notifications, and I see that there is no notification of a specific day and time, but the system SAVES THE FIRE NOTIFICATION THAT DOES NOT GIVE IN THE LIST! , and this something does not happen once, but for a full month with iOS9.
- We think the problem is related to:
[[UAppication sharedApplication] cancelAllLocalNotifications];
but even when we cancel each of them (cycle), they start, and we found out that this line removes the notification from the list (the same list that I received with the code above) , but in practice, keep shooting!
Is there an option to prevent this list from showing me a real system list? Or is the system just “disconnected” from the list?
, , , , - , .
, - iOS.