Description
When I run my taskts and look for any console response, I see only this:
06-09 23:27:06.986 25351 25351 D BackgroundTask: Committing job schedule
06-09 23:34:37.407 25351 26893 D BackgroundTask: Job is running
and nothing happened.
AsyncStorage is empty, console log were not triggered...
Any idea?
Android 9,
`"dependencies": {
"haversine": "^1.1.1",
"lottie-react-native": "^2.6.1",
"native-base": "^2.12.1",
"react": "16.8.3",
"react-native": "0.59.8",
"react-native-background-task": "^0.2.1",
"react-native-camera": "^2.9.0",
"react-native-gesture-handler": "^1.2.1",
"react-native-maps": "^0.24.2",
"react-native-push-notification": "3.1.1",
"react-native-queue": "^1.2.1",
"react-navigation": "^3.11.0",
"react-redux": "^7.0.3",
"redux": "^4.0.1",
"redux-persist": "^5.10.0",
"redux-thunk": "^2.3.0"
},
Activity
[-]Nothing happened after job run[/-][+]Nothing happened when job is finished[/+]alexCarb commentedon Jun 20, 2019
the same
rafalkowalewski commentedon Jun 23, 2019
I added this permission and it started working :)
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
rayjadore commentedon Jul 8, 2019
didnt work for me even after adding the permission, so the thing is that the define() method is never triggered.
qlerebours commentedon Aug 30, 2019
For those facing this issue, there is a PR that fixed this for Android 8.0+
#64
mathiasmoeller commentedon Mar 6, 2020
The fix in #64 did not solve the issue for me. I am still seeing this behavior.
I call
BackgroundTask.define
directly inindex.js
on root level andBackgroundTask.schedule
from inside a Compontent. The job should save a dummy value in AsyncStorage. Which it doesn't. Any ideas or any progress on that?Ravi828rk commentedon Jul 26, 2022
any solution?