Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is actually the value of UIApplicationBackgroundFetchIntervalMinimum?

Tags:

ios

ios7

I'm about setting up background fetch for an iOS application.

I do:

func application(
    application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?
    ) -> Bool {
        ...
        application.setMinimumBackgroundFetchInterval(
            UIApplicationBackgroundFetchIntervalMinimum)
        ...

if I inspect and print UIApplicationBackgroundFetchIntervalMinimum in the debugger it says 0 - what is the value actually ?

I tried looking through the api as well but no luck https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/#//apple_ref/occ/instm/UIApplication/setMinimumBackgroundFetchInterval:

like image 931
pellekrogholt Avatar asked May 11 '15 11:05

pellekrogholt


Video Answer


1 Answers

It is not specified by Apple how long UIApplicationBackgroundFetchIntervalMinimum time is, however in practice it is around 10 minutes.

like image 159
Vizllx Avatar answered Sep 22 '22 21:09

Vizllx