react-native-background-timer
react-native-background-timer copied to clipboard
why this module does not work if I turn off the application from the process
my device android
BackgroundTimer.setTimeout(() => {
Vibration.vibrate();
console.log('run task');
}, 5000);
Create a background task using headlessJS in react native and this should work.
Did you manage to solve this? I used a couple of libraries that register background tasks but I soon discovered that it wasn't the background task not running, but the Vibration module not working while the app is in the background. Have you manage to come up with a solution to this?