Comments (6)
didnt work for me even after adding the permission, so the thing is that the define() method is never triggered.
from react-native-background-task.
the same
from react-native-background-task.
I added this permission and it started working :)
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
from react-native-background-task.
For those facing this issue, there is a PR that fixed this for Android 8.0+
#64
from react-native-background-task.
The fix in #64 did not solve the issue for me. I am still seeing this behavior.
03-06 13:58:27.010 27548 27641 D BackgroundTask: Initializing
03-06 13:58:27.017 27548 27548 D BackgroundTask: Setting foreground true
03-06 13:58:29.370 27548 27641 D BackgroundTask: @ReactMethod BackgroundTask.schedule
03-06 13:58:50.199 27548 27548 D BackgroundTask: Setting foreground false
03-06 13:58:50.199 27548 27548 D BackgroundTask: Committing job schedule
03-06 14:06:42.622 30274 30326 D BackgroundTask: Job is running
03-06 14:07:14.506 30515 30585 D BackgroundTask: Job is running
03-06 14:08:26.622 30623 30675 D BackgroundTask: Job is running
I call BackgroundTask.define
directly in index.js
on root level and BackgroundTask.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?
from react-native-background-task.
any solution?
from react-native-background-task.
Related Issues (20)
- Socket Connections HOT 2
- Failure on Android 9
- Background task not running if not debug remotely HOT 3
- Background Task is not working for android 4.4
- Release Build : Android resource linking failed HOT 2
- It is only working with 100% battery.
- BackgroundTask.defines the functional component using hook
- Android-job library is deprecated
- How to use it with Expo ? HOT 3
- Start first execution immediately HOT 1
- Task not triggering when app closed Android 9 / 10 HOT 4
- Min API level in V.0.2.0
- you need to call create() at least once to create the singleton HOT 1
- Cannot find module 'react-native-background-task' HOT 6
- Register Headless js HOT 1
- Background service is not working HOT 11
- Could not determine the dependencies of task ':app:mergeDebugAssets' HOT 1
- android gradle compile error
- Background task is not working in ios with react-native-fetch HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-background-task.