I am developing an application using background selection.
I will need a function running in the background every 5 seconds, but with the code I saw in google, SO chooses when the function should be called.
I want this function to execute every 5 seconds.
My code is here:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[[UIApplication sharedApplication] setMinimumBackgroundFetchInterval:UIApplicationBackgroundFetchIntervalMinimum];
return YES;
}
source
share