Getting Notifications in Background Mode iOS?
Posted
by
Pau Senabre
on Stack Overflow
See other posts from Stack Overflow
or by Pau Senabre
Published on 2014-08-19T16:17:01Z
Indexed on
2014/08/19
16:20 UTC
Read the original article
Hit count: 188
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?
© Stack Overflow or respective owner