Getting Notifications in Background Mode iOS?
- by Pau Senabre
I'm trying to get Notifications in Background Mode by running a method every minute to see if there are new notifications. This works great in Active Mode, but I saw for background mode it is restricted to 7 keys.
I enabled the Background Mode with the option Background Fetch, but seems like the method is being called but it's not complete.
In AppDelegate I'm calling:
- (void)applicationDidEnterBackground:(UIApplication *)application
{
//This has a Timer to execute every minute
[self GetNotifications];
//This executes a NSMutableURLRequest *request
//giving back the JSON data with the notifications
}
I would like to do something like Facebook does for Notifications.
Any idea how to do this?