Comments (9)
Do you mean that it is executing in the foreground? There are some issues with alwaysRunning
and we will probably replace it with an exact
mode in v.2.0.0
. If you wish to try it out already please try adding [email protected]
from react-native-background-job.
It seems to think that the app is still in a terminated state when in fact I've restarted my app (so the job keeps running, I can't cancel it). I'll give 2.0.0 a try. Is there a different API / set of parameters or methods for exact mode?
from react-native-background-job.
Ok, weird. And before you try 2.0.0, what current version are you using?
from react-native-background-job.
I'm using 1.2.4. I just tried 2.0.0 (switched alwaysRunning --> exact), this issue is not exhibited which is great. I'm seeing something funky with the intervals, it seems like from logcat that RNBJ is executing at the exact intervals, but my API calls seem to be at scattered times (which was fine in 1.2.4) - this could be on my end and will investigate. Though are there any known issues with V2 exact mode in terms of the intervals?
Also, it looks like it's now possible to have multiple exact jobs (as opposed to only one alwaysRunning) and they can also run in the foreground? (appreciating that these should be concise units of work so as to not freeze the app)
from react-native-background-job.
I have just started evaluating v2 and I'm not personally using exact mode. But I tried it and it worked. A way to debug is to fork this project and try the example project and see if you have the same issues there.
Yes they can run in the foreground, I haven't tested multiple exact jobs since I did not develop that feature.
from react-native-background-job.
Thanks a lot. What branch/repo is the v2 code on?
from react-native-background-job.
It's in this PR: #38 Can I close the issue btw?
from react-native-background-job.
Thanks; yes given that 2.0 solves it. Appreciate all the quick responses.
from react-native-background-job.
👍
from react-native-background-job.
Related Issues (20)
- api 28 background not work HOT 1
- cannot be overwritten by another process
- Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. HOT 2
- RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground()
- None tasks are working in background after app killed in Android 10 HOT 1
- what is the use notificationTitle and notificationText , where would they appear ? , I can not see them in my app
- error: package android.support.annotation does not exist HOT 2
- Job not triggered HOT 3
- react-native-background-job doesnt work on Android 9.0 HOT 2
- implement a method from a supertype @Override
- Release "Upgrade to Android X"
- App doesn't run second time if we schedule background job.
- Could not find com.firebase:firebase-jobdispatcher:0.8.5. HOT 6
- TypeError: Cannot read properties of undefined
- IS APPLICATION RUNS EVEN I BACKGROUND
- Testing in development with periodic interval lesser than 15 minutes
- What is the supported range of Android version?
- Could not find com.firebase:firebase-jobdispatcher:0.8.5
- React Native Background Actions - App is Not Running in Background All the Time
- React Native Background Actions - App is Not Running in Background All the Time
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-job.