Reputation: 22926
Is it valid to schedule a UILocalNotification
, to alert the user to new content during an iOS 7 background fetch, if new content is available?
Ie. are there restrictions with communicating with the user, should the background fetch be transparent?
Upvotes: 0
Views: 591
Reputation: 10096
You can easily schedule any local notification in
-(void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
before the line
completionHandler(UIBackgroundFetchResultNewData);
to notify user at the moment or any further time.
Upvotes: 3