Name Date Size #Lines LOC

..26-Sep-2023-

android/H26-Sep-2023-585428

build/H26-Sep-2023-25992

ios/H26-Sep-2023-168134

plugin/H26-Sep-2023-6655

src/H26-Sep-2023-18071

.eslintrc.jsH A D26-Sep-2023103 31

.gitignoreH A D26-Sep-202312 21

.npmignoreH A D26-Sep-2023183 128

CHANGELOG.mdH A D26-Sep-20236.2 KiB16888

README.mdH A D26-Sep-20231.9 KiB4526

app.plugin.jsH A D26-Sep-202364 21

babel.config.jsH A D26-Sep-2023104 31

expo-module.config.jsonH A D26-Sep-2023220 1110

package.jsonH A D26-Sep-20231.1 KiB4544

tsconfig.jsonH A D26-Sep-2023217 109

README.md

1# expo-background-fetch
2
3Expo universal module for BackgroundFetch API
4
5# API documentation
6
7- [Documentation for the main branch](https://github.com/expo/expo/blob/main/docs/pages/versions/unversioned/sdk/background-fetch.mdx)
8- [Documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/background-fetch/)
9
10# Installation in managed Expo projects
11
12For [managed](https://docs.expo.dev/archive/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/background-fetch/).
13
14# Installation in bare React Native projects
15
16For bare React Native projects, you must ensure that you have [installed and configured the `expo` package](https://docs.expo.dev/bare/installing-expo-modules/) before continuing.
17
18### Add the package to your npm dependencies
19
20```
21npx expo install expo-background-fetch
22```
23
24### Configure for iOS
25
26Run `npx pod-install` after installing the npm package.
27
28In order to use `BackgroundFetch` API in standalone, detached and bare apps on iOS, your app has to include background mode in the `Info.plist` file. See [background tasks configuration guide](https://docs.expo.dev/versions/latest/sdk/task-manager/#configuration-for-standalone-apps) for more details.
29
30### Configure for Android
31
32No additional set up necessary.
33
34This module might listen when the device is starting up. It's necessary to continue working on tasks started with `startOnBoot`. It also keeps devices "awake" that are going idle and asleep fast, to improve reliability of the tasks.
35
36```xml
37<!-- Added permissions -->
38<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
39<uses-permission android:name="android.permission.WAKE_LOCK" />
40```
41
42# Contributing
43
44Contributions are very welcome! Please refer to guidelines described in the [contributing guide](https://github.com/expo/expo#contributing).
45