Background fetch instructions updated

This commit is contained in:
Anshul Koka 2017-04-26 18:43:58 -07:00 committed by GitHub
parent 58b989350d
commit ec88c6edb2

View File

@ -466,7 +466,9 @@ If `progressDivider` = 0, you will receive all `progressCallback` calls, default
(IOS only): `options.background` (`Boolean`) - Whether to continue downloads when the app is not focused (default: `false`) (IOS only): `options.background` (`Boolean`) - Whether to continue downloads when the app is not focused (default: `false`)
This option is currently only available for iOS, and you must [enable This option is currently only available for iOS, and you must [enable
background fetch](https://www.objc.io/issues/5-ios7/multitasking/#background-fetch<Paste>) background fetch](https://www.objc.io/issues/5-ios7/multitasking/#background-fetch<Paste>)
for your project in XCode. for your project in XCode. You only need to enable background fetch in `Info.plist` and set
the fetch interval in `didFinishLaunchingWithOptions`. The `performFetchWithCompletionHandler`
callback is handled by RNFS.
### `stopDownload(jobId: number): void` ### `stopDownload(jobId: number): void`