Skip to content

Releases: vikeri/react-native-background-job

Expose result of scheduling as Promise

04 Jul 08:23
Compare
Choose a tag to compare

The result of the operation was never exposed to the JS layer, this has now been corrected by making all the functions return promises.

Support Android SDK 56 and RN 0.56

09 Oct 10:27
Compare
Choose a tag to compare

This update brings support to targetSDK 26. In order for that to work your background job will have to show a notification while it's executing. Specify the notificationText and notificationTitle when you schedule the job. See more here: https://github.com/vikeri/react-native-background-job#schedule

Fix ANR issues for Oreo

23 Mar 14:02
Compare
Choose a tag to compare
Pre-release

Fixes: #71

Included function for checking if the app is ignoring battery optimizations

08 Jan 09:54
Compare
Choose a tag to compare

Fix foreground jobs not firing

12 Sep 17:05
Compare
Choose a tag to compare

Thanks alexey-kuznetsov for fixing an issue where foreground jobs were not firing

Migrate from JobScheduler to firebase-jobdispatcher

20 Aug 16:23
Compare
Choose a tag to compare

This update is a breaking change.

tl;dr:

  • Library is now compatible down to Android API +16, thanks @toteto!
  • New flag exact makes the Job run at exact intervals (but consumes more battery).
  • Flag alwaysRunning and method getAll has been deprecated

The library is now based on firebase-jobdispatcher instead of the built in JobScheduler. This means the library will work with Android +16 instead of previous +21. This major effort was done by @toteto. Thanks a lot!

Regrettably alwaysRunning has been removed. Personally I don't have time to add it again on top of @toteto's changes since we are no longer using the feature at Pilloxa. But if someone wants to do this a PR is more than welcome. In theory one should only have to reimplement the Java and Javascript changes in this PR: https://github.com/vikeri/react-native-background-job/pull/20/files

Fix crash on open and now works with >RN 44.3

07 Jul 22:14
Compare
Choose a tag to compare

Persistent always on background jobs

24 Apr 09:13
Compare
Choose a tag to compare

A new parameter, alwaysRunning is added to the schedule function and this will allow the app to run forever and prevent the system from killing it. To allow this, Android requires the app to show a notification.

Note: This will not work or at least act unexpectedly with multiple background jobs, currently only one job is supported. PR's fixing this are welcome but for our company's use-case it is not a priority.

Bug fixes

20 Apr 07:23
Compare
Choose a tag to compare
Bug fixes Pre-release
Pre-release

Fixed icon issue and edge case when service is started with a null intent.

Other than that, see: https://github.com/vikeri/react-native-background-job/releases/tag/v1.1.3-0

Experimental support for ongoing background jobs

17 Apr 15:47
Compare
Choose a tag to compare

A new parameter, alwaysRunning is added to the schedule function and this will allow the app to run forever and prevent the system from killing it. To allow this, Android requires the app to show a notification.

Note: This will not work or at least act unexpectedly with multiple background jobs, currently only one job is supported. PR's fixing this are welcome but for our company's use-case it is not a priority.

This is not on master yet since it is very experimental, see the README.md on the feature branch.

Install with

yarn add react-native-background-job@beta