Woodstock
Woodstock

Reputation: 22926

Background Fetch and UILocalNotifications

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

Answers (1)

malex
malex

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

Related Questions