I have an application that runs in the background using location services (through significant location updates). Whenever a significant place is updated, it is called - (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations, and then I call [[UIApplication sharedApplication] beginBackgroundTaskWithExpirationHandler:...to start the background job. Then I try to run a local notification:
UILocalNotification *notif = [[UILocalNotification alloc] init];
[notif setAlertAction:@"Test"];
[[UIApplication sharedApplication] presentLocalNotificationNow:notif];
However, the notification is not provided to the user. Local notifications can not be sent from the background? Any help is appreciated.
Thanks,
source
share