React Native background service library for running background tasks forever in Android & iOS. Schedule a background job that will run your JavaScript when your app is in the background or foreground.
-
Android: This library relies on React Native's
HeadlessJS
for Android. Before building your JS task, make sure to read all the documentation. The jobs will run even if the app has been closed. -
iOS: This library relies on iOS's
UIApplication beginBackgroundTaskWithName
method, which won't keep your app in the background forever by itself. However, you can rely on other libraries likereact-native-track-player
that use audio, geolocalization, etc. to keep your app alive in the background while you excute the JS from this library.
Go to INSTALL.md to see the how to install, compatibility with RN and Linking process.
Go to USAGE.md to see the example code and options.
- iOS part originally forked from react-native-background-timer
The library is released under the MIT license. For more information see LICENSE
.