UNPKG

1.83 kBMarkdownView Raw
1# expo-task-manager
2
3Expo universal module for TaskManager API
4
5# API documentation
6
7- [Documentation for the master branch](https://github.com/expo/expo/blob/master/docs/pages/versions/unversioned/sdk/task-manager.md)
8- [Documentation for the latest stable release](https://docs.expo.io/versions/latest/sdk/task-manager/)
9
10# Installation in managed Expo projects
11
12For managed [managed](https://docs.expo.io/versions/latest/introduction/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](https://docs.expo.io/versions/latest/sdk/task-manager/).
13
14# Installation in bare React Native projects
15
16For bare React Native projects, you must ensure that you have [installed and configured the `react-native-unimodules` package](https://github.com/unimodules/react-native-unimodules) before continuing.
17
18## Installation in bare iOS React Native project
19
20Apart from following [those steps](#installation-in-bare-react-native-projects), make sure your `AppDelegate` extends `UMAppDelegateWrapper` as shown [here](https://gist.github.com/mczernek/a62413ca517cfd5dac015f5527dafef0).
21
22### Add the package to your npm dependencies
23
24```
25expo install expo-task-manager
26```
27
28### Configure for iOS
29
30Run `npx pod-install` after installing the npm package.
31
32In order to use `TaskManager` 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.io/versions/latest/sdk/task-manager/#configuration-for-standalone-apps) for more details.
33
34### Configure for Android
35
36No additional set up necessary.
37
38# Contributing
39
40Contributions are very welcome! Please refer to guidelines described in the [contributing guide](https://github.com/expo/expo#contributing).