Skip to content

Commit e32a40b

Browse files
committed
Merge branch 'android-stopOnTerminate'
2 parents 65915f7 + 0c395a2 commit e32a40b

File tree

5 files changed

+7
-1
lines changed

5 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# CHANGELOG
22

3+
## [3.0.3] — 2020-02-21
4+
* [Fixed] [Android] `stopOnTerminate: false` not cancelling scheduled job / Alarm when fired task fired after terminate.
5+
36
## [3.0.2] — 2020-02-20
47
* [Android] Fix Android NPE on `hasTaskId` when launched first time after upgrading to v3
58

-40 KB
Binary file not shown.
40 KB
Binary file not shown.

android/src/main/java/com/transistorsoft/rnbackgroundfetch/RNBackgroundFetchModule.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ private BackgroundFetchConfig.Builder buildConfig(ReadableMap options) {
146146
if (options.hasKey(BackgroundFetchConfig.FIELD_REQUIRES_STORAGE_NOT_LOW)) {
147147
config.setRequiresStorageNotLow(options.getBoolean(BackgroundFetchConfig.FIELD_REQUIRES_STORAGE_NOT_LOW));
148148
}
149+
if (options.hasKey(BackgroundFetchConfig.FIELD_PERIODIC)) {
150+
config.setPeriodic(options.getBoolean(BackgroundFetchConfig.FIELD_PERIODIC));
151+
}
149152
return config;
150153
}
151154

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-background-fetch",
3-
"version": "3.0.2",
3+
"version": "3.0.3",
44
"description": "iOS & Android BackgroundFetch API implementation for React Native",
55
"scripts": {
66
"test": "echo \"Error: no test specified\" && exit 1"

0 commit comments

Comments
 (0)