@a.abunada/expo-task-manager 中文文档教程
expo-task-manager
TaskManager API 的 Expo 通用模块
API documentation
Installation in managed Expo projects
对于托管 托管 Expo 项目,请按照安装说明进行操作在最新稳定版本的 API 文档中。
Installation in bare React Native projects
对于裸 React Native 项目,您必须确保已安装并配置了 react -native-unimodules
package 在继续之前。
Installation in bare iOS React Native project
除了遵循这些步骤之外,确保您的AppDelegate
extends UMAppDelegateWrapper
作为显示在此处。
Add the package to your npm dependencies
expo install expo-task-manager
Configure for iOS
安装 npm 包后运行 npx pod-install
。
为了在 iOS 上的独立、分离和裸应用程序中使用 TaskManager
API,您的应用程序必须在 Info.plist
文件中包含后台模式。 有关详细信息,请参阅后台任务配置指南。
Configure for Android
无需额外设置。
Contributing
非常欢迎投稿! 请参阅贡献指南中描述的指南。
expo-task-manager
Expo universal module for TaskManager API
API documentation
Installation in managed Expo projects
For managed managed Expo projects, please follow the installation instructions in the API documentation for the latest stable release.
Installation in bare React Native projects
For bare React Native projects, you must ensure that you have installed and configured the react-native-unimodules
package before continuing.
Installation in bare iOS React Native project
Apart from following those steps, make sure your AppDelegate
extends UMAppDelegateWrapper
as shown here.
Add the package to your npm dependencies
expo install expo-task-manager
Configure for iOS
Run npx pod-install
after installing the npm package.
In 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 for more details.
Configure for Android
No additional set up necessary.
Contributing
Contributions are very welcome! Please refer to guidelines described in the contributing guide.