Contents

setMinimumBackgroundFetchInterval(_:)

Specifies the minimum amount of time that must elapse between background fetch operations.

Declaration

func setMinimumBackgroundFetchInterval(_ minimumBackgroundFetchInterval: TimeInterval)

Parameters

  • minimumBackgroundFetchInterval:

    The minimum number of seconds that must elapse before another background fetch can be initiated. This value is advisory only and does not indicate the exact amount of time expected between fetch operations.

Mentioned in

Discussion

This property has no effect for apps that do not have the UIBackgroundModes key with the fetch value in its Info.plist file.

The default fetch interval for apps is backgroundFetchIntervalNever. Therefore, you must call this method and set a fetch interval before your app is given background execution time.

See Also

Deprecated methods