cordova-plugin-background-fetch: Background fetch is not working for android
Your Environment
- Plugin version: 5.6.0
- Platform: Android
- OS version:
- Device manufacturer / model:
- Cordova version (
cordova -v
):7.1.4 - Cordova platform version (
cordova platform ls
): - Plugin config
Expected Behavior
Needed to call the background fetch for every 15 minutes as expected,but function is not getting called for one time also. Kindly tell me more about var BackgroundFetch = window.BackgroundFetch; should I create any UI component to start the activity?
Actual Behavior
Steps to Reproduce
Context
Debug logs
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 23 (10 by maintainers)
Simulate a background-fetch event on a device (insert <your.application.id>) (only works for sdk 24+):
and For devices with sdk <21, simulate a “Headless JS” event with (insert <your.application.id>)
What about sdk > 21 but < 24? lol
If you have a 9.0 device, why are you using
adb shell am broadcat
?? Do you know what API level Android 9.0 is?Simulate a background-fetch event on a device (insert <your.application.id>) (only works for sdk 24+):
For devices with sdk <21, simulate a “Headless JS” event with (insert <your.application.id>)