Question

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?

Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top