GithubHelp home page GithubHelp logo

Comments (9)

vikeri avatar vikeri commented on August 25, 2024

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.

brwelch avatar brwelch commented on August 25, 2024

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.

vikeri avatar vikeri commented on August 25, 2024

Ok, weird. And before you try 2.0.0, what current version are you using?

from react-native-background-job.

brwelch avatar brwelch commented on August 25, 2024

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.

vikeri avatar vikeri commented on August 25, 2024

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.

brwelch avatar brwelch commented on August 25, 2024

Thanks a lot. What branch/repo is the v2 code on?

from react-native-background-job.

vikeri avatar vikeri commented on August 25, 2024

It's in this PR: #38 Can I close the issue btw?

from react-native-background-job.

brwelch avatar brwelch commented on August 25, 2024

Thanks; yes given that 2.0 solves it. Appreciate all the quick responses.

from react-native-background-job.

vikeri avatar vikeri commented on August 25, 2024

👍

from react-native-background-job.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.