react-native-background-timer icon indicating copy to clipboard operation
react-native-background-timer copied to clipboard

why this module does not work if I turn off the application from the process

Open putu-eka-mulyana opened this issue 4 years ago • 2 comments

my device android

BackgroundTimer.setTimeout(() => {
    Vibration.vibrate();
    console.log('run task');
}, 5000);

putu-eka-mulyana avatar Jun 13 '20 10:06 putu-eka-mulyana

Create a background task using headlessJS in react native and this should work.

lakjeewa-rightapps avatar Feb 01 '21 07:02 lakjeewa-rightapps

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?

mstaicu avatar May 23 '21 21:05 mstaicu