react-native-background-geolocation 4.18.2 → 4.18.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/.github/ISSUE_TEMPLATE/1-bug.yml +80 -0
  2. package/.github/ISSUE_TEMPLATE/2-help-wanted.yml +60 -0
  3. package/android/libs/com/transistorsoft/{tslocationmanager-v21/3.6.4/tslocationmanager-v21-3.6.4.aar → tslocationmanager/3.6.5/tslocationmanager-3.6.5.aar} +0 -0
  4. package/android/libs/com/transistorsoft/tslocationmanager/3.6.5/tslocationmanager-3.6.5.aar.md5 +1 -0
  5. package/android/libs/com/transistorsoft/tslocationmanager/3.6.5/tslocationmanager-3.6.5.aar.sha1 +1 -0
  6. package/android/libs/com/transistorsoft/tslocationmanager/3.6.5/tslocationmanager-3.6.5.aar.sha256 +1 -0
  7. package/android/libs/com/transistorsoft/tslocationmanager/3.6.5/tslocationmanager-3.6.5.aar.sha512 +1 -0
  8. package/android/libs/com/transistorsoft/tslocationmanager/{3.6.4/tslocationmanager-3.6.4.pom → 3.6.5/tslocationmanager-3.6.5.pom} +1 -1
  9. package/android/libs/com/transistorsoft/tslocationmanager/3.6.5/tslocationmanager-3.6.5.pom.md5 +1 -0
  10. package/android/libs/com/transistorsoft/tslocationmanager/3.6.5/tslocationmanager-3.6.5.pom.sha1 +1 -0
  11. package/android/libs/com/transistorsoft/tslocationmanager/3.6.5/tslocationmanager-3.6.5.pom.sha256 +1 -0
  12. package/android/libs/com/transistorsoft/tslocationmanager/3.6.5/tslocationmanager-3.6.5.pom.sha512 +1 -0
  13. package/android/libs/com/transistorsoft/tslocationmanager/maven-metadata.xml +4 -3
  14. package/android/libs/com/transistorsoft/{tslocationmanager/3.6.4/tslocationmanager-3.6.4.aar → tslocationmanager-v21/3.6.5/tslocationmanager-v21-3.6.5.aar} +0 -0
  15. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.6.5/tslocationmanager-v21-3.6.5.aar.md5 +1 -0
  16. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.6.5/tslocationmanager-v21-3.6.5.aar.sha1 +1 -0
  17. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.6.5/tslocationmanager-v21-3.6.5.aar.sha256 +1 -0
  18. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.6.5/tslocationmanager-v21-3.6.5.aar.sha512 +1 -0
  19. package/android/libs/com/transistorsoft/tslocationmanager-v21/{3.6.4/tslocationmanager-v21-3.6.4.pom → 3.6.5/tslocationmanager-v21-3.6.5.pom} +1 -1
  20. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.6.5/tslocationmanager-v21-3.6.5.pom.md5 +1 -0
  21. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.6.5/tslocationmanager-v21-3.6.5.pom.sha1 +1 -0
  22. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.6.5/tslocationmanager-v21-3.6.5.pom.sha256 +1 -0
  23. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.6.5/tslocationmanager-v21-3.6.5.pom.sha512 +1 -0
  24. package/android/libs/com/transistorsoft/tslocationmanager-v21/maven-metadata.xml +4 -3
  25. package/android/src/main/java/com/transistorsoft/rnbackgroundgeolocation/HeadlessTaskManager.java +17 -9
  26. package/package.json +1 -1
  27. package/android/libs/com/transistorsoft/tslocationmanager/3.6.4/tslocationmanager-3.6.4.aar.md5 +0 -1
  28. package/android/libs/com/transistorsoft/tslocationmanager/3.6.4/tslocationmanager-3.6.4.aar.sha1 +0 -1
  29. package/android/libs/com/transistorsoft/tslocationmanager/3.6.4/tslocationmanager-3.6.4.aar.sha256 +0 -1
  30. package/android/libs/com/transistorsoft/tslocationmanager/3.6.4/tslocationmanager-3.6.4.aar.sha512 +0 -1
  31. package/android/libs/com/transistorsoft/tslocationmanager/3.6.4/tslocationmanager-3.6.4.pom.md5 +0 -1
  32. package/android/libs/com/transistorsoft/tslocationmanager/3.6.4/tslocationmanager-3.6.4.pom.sha1 +0 -1
  33. package/android/libs/com/transistorsoft/tslocationmanager/3.6.4/tslocationmanager-3.6.4.pom.sha256 +0 -1
  34. package/android/libs/com/transistorsoft/tslocationmanager/3.6.4/tslocationmanager-3.6.4.pom.sha512 +0 -1
  35. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.6.4/tslocationmanager-v21-3.6.4.aar.md5 +0 -1
  36. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.6.4/tslocationmanager-v21-3.6.4.aar.sha1 +0 -1
  37. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.6.4/tslocationmanager-v21-3.6.4.aar.sha256 +0 -1
  38. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.6.4/tslocationmanager-v21-3.6.4.aar.sha512 +0 -1
  39. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.6.4/tslocationmanager-v21-3.6.4.pom.md5 +0 -1
  40. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.6.4/tslocationmanager-v21-3.6.4.pom.sha1 +0 -1
  41. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.6.4/tslocationmanager-v21-3.6.4.pom.sha256 +0 -1
  42. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.6.4/tslocationmanager-v21-3.6.4.pom.sha512 +0 -1
@@ -0,0 +1,80 @@
1
+ name: Bug Report
2
+ description: File a bug report.
3
+ title: "[Bug]: "
4
+ labels: ["bug", "triage"]
5
+ body:
6
+ - type: markdown
7
+ attributes:
8
+ value: |
9
+ Thanks for taking the time to fill out this support request.
10
+ - type: checkboxes
11
+ id: terms
12
+ attributes:
13
+ label: Required Reading
14
+ description: "- I have read the Wikis [Philosophy of Operation](../wiki/Philosophy-of-Operation) and [Debugging](../wiki/Debugging)\n- I am aware of the [API Documentation](https://transistorsoft.github.io/react-native-background-geolocation/)\n- I am aware of the [CHANGELOG](../blob/master/CHANGELOG.md)"
15
+ options:
16
+ - label: Confirmed
17
+ required: true
18
+ - type: input
19
+ id: version
20
+ attributes:
21
+ label: Plugin Version
22
+ description: What version of our software are you running?
23
+ placeholder: "Consult your package.json (do not enter 'latest')"
24
+ validations:
25
+ required: true
26
+ - type: checkboxes
27
+ id: os
28
+ attributes:
29
+ label: Mobile operating-system(s)
30
+ description: Which mobile operating-system(s) is this issue reported upon?
31
+ options:
32
+ - label: iOS
33
+ - label: Android
34
+ - type: input
35
+ id: device-info
36
+ attributes:
37
+ label: Device Manufacturer(s) and Model(s)
38
+ description: What is the device model(s) and manufacturer(s)
39
+ placeholder: eg Google Pixel 6, iPhone 13 Pro
40
+ validations:
41
+ required: true
42
+ - type: input
43
+ id: device-os
44
+ attributes:
45
+ label: Device operating-systems(s)
46
+ description: Affected device operating system
47
+ placeholder: eg iOS 18.1, Android 13
48
+ validations:
49
+ required: true
50
+ - type: input
51
+ id: framework-version
52
+ attributes:
53
+ label: React Native / Expo version
54
+ description: What version React Native / Expo are you using
55
+ placeholder: "eg: 0.76.6, Expo 52 (consult your package.json)"
56
+ - type: textarea
57
+ id: what-happened
58
+ attributes:
59
+ label: What happened?
60
+ description: Also tell us, what did you expect to happen?
61
+ placeholder: Tell us what happened and what did you expect to happen.
62
+ validations:
63
+ required: true
64
+ - type: textarea
65
+ id: config
66
+ attributes:
67
+ label: Plugin Code and/or Config
68
+ description: Provide the Config you're using with the `BackgroundGeolocation.ready(config)` method along with any other relevant code.
69
+ placeholder: "Paste your Config or code here, eg: BackgroundGeolocation.ready(config).\n\nYour code will be automatically syntax-highlighted"
70
+ render: typescript
71
+ validations:
72
+ required: true
73
+ - type: textarea
74
+ id: logs
75
+ attributes:
76
+ label: Relevant log output
77
+ description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
78
+ placeholder: "include iOS / Android logs\n- $ adb logcat -s TSLocationManager:V\n- ios XCode logs\n- Logs from BackgroundGeolocation.emailLog(address)"
79
+ render: shell
80
+
@@ -0,0 +1,60 @@
1
+ name: Help Wanted
2
+ description: I need assistance
3
+ title: "[Help Wanted]: "
4
+ labels: ["triage"]
5
+ body:
6
+ - type: markdown
7
+ attributes:
8
+ value: |
9
+ Thanks for taking the time to fill out this support request.
10
+ - type: checkboxes
11
+ id: terms
12
+ attributes:
13
+ label: Required Reading
14
+ description: "- I have read the Wikis [Philosophy of Operation](../wiki/Philosophy-of-Operation) and [Debugging](../wiki/Debugging)\n- I am aware of the [API Documentation](https://transistorsoft.github.io/react-native-background-geolocation/)\n- I am aware of the [CHANGELOG](../blob/master/CHANGELOG.md)"
15
+ options:
16
+ - label: Confirmed
17
+ required: true
18
+ - type: input
19
+ id: version
20
+ attributes:
21
+ label: Plugin Version
22
+ description: What version of our software are you running?
23
+ placeholder: "Consult your package.json (do not enter 'latest')"
24
+ validations:
25
+ required: true
26
+ - type: checkboxes
27
+ id: os
28
+ attributes:
29
+ label: Mobile operating-system(s)
30
+ description: Which mobile operating-system(s) is this about?
31
+ options:
32
+ - label: iOS
33
+ - label: Android
34
+ validations:
35
+ required: true
36
+ - type: textarea
37
+ id: what-happened
38
+ attributes:
39
+ label: What do you require assistance about?
40
+ validations:
41
+ required: true
42
+ - type: textarea
43
+ id: config
44
+ attributes:
45
+ label: "[Optional] Plugin Code and/or Config"
46
+ description: Provide the Config you're using with the `BackgroundGeolocation.ready(config)` method along with any other relevant code.
47
+ placeholder: "Paste your Config or code here, eg: BackgroundGeolocation.ready(config).\n\nYour code will be automatically syntax-highlighted"
48
+ render: typescript
49
+ validations:
50
+ required: false
51
+ - type: textarea
52
+ id: logs
53
+ attributes:
54
+ label: "[Optional] Relevant log output"
55
+ description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
56
+ placeholder: "include iOS / Android logs\n- $ adb logcat -s TSLocationManager:V\n- ios XCode logs\n- Logs from BackgroundGeolocation.emailLog(address)"
57
+ render: shell
58
+ validations:
59
+ required: false
60
+
@@ -0,0 +1 @@
1
+ 1b83d14203578befafb662d0112b1c35a17871cb
@@ -0,0 +1 @@
1
+ 66c64503da5d2cab957988eb7138169c89ce5929df66711ad2a8f99d7afa117a
@@ -0,0 +1 @@
1
+ a87fcdde6e9f66eaf70af1b8cc62b675a70ccde9ee0bc79f9fb4e5734d66f1ab376cce92732c5e93987bc5460d888cd88fac28ffb5034fa30effb48d4eb9d0ba
@@ -4,6 +4,6 @@
4
4
  <modelVersion>4.0.0</modelVersion>
5
5
  <groupId>com.transistorsoft</groupId>
6
6
  <artifactId>tslocationmanager</artifactId>
7
- <version>3.6.4</version>
7
+ <version>3.6.5</version>
8
8
  <packaging>aar</packaging>
9
9
  </project>
@@ -0,0 +1 @@
1
+ 4ca269def78960b540b44ea9690d9d57ede406c6
@@ -0,0 +1 @@
1
+ 8813e8e5aad42f144f10ed3a987220a1673615ce74e196c8be614a8c78d949d9
@@ -0,0 +1 @@
1
+ cfd0789328dc32c4ec02314cecfcb2ebfd58d368d85df4fa47583b0d0cb65dd708e5196422d9b0b274c206c88c75dc9e11b3ad60ea6f1c093137a7fb9fc58123
@@ -3,15 +3,16 @@
3
3
  <groupId>com.transistorsoft</groupId>
4
4
  <artifactId>tslocationmanager</artifactId>
5
5
  <versioning>
6
- <latest>3.6.4</latest>
7
- <release>3.6.4</release>
6
+ <latest>3.6.5</latest>
7
+ <release>3.6.5</release>
8
8
  <versions>
9
9
  <version>3.6.0</version>
10
10
  <version>3.6.1</version>
11
11
  <version>3.6.2</version>
12
12
  <version>3.6.3</version>
13
13
  <version>3.6.4</version>
14
+ <version>3.6.5</version>
14
15
  </versions>
15
- <lastUpdated>20241203042324</lastUpdated>
16
+ <lastUpdated>20250210143706</lastUpdated>
16
17
  </versioning>
17
18
  </metadata>
@@ -0,0 +1 @@
1
+ 190beef2d1f932256924f28d64a3746950e9f4852866c414a9138550a3cac201
@@ -0,0 +1 @@
1
+ 1e0047e14744676456263485c06332275216183e7ad6006a3ed5e2afd04f9ee3b12de5695550f8ea62fd60114681bd6d7a491218c464295e77f2225ab52cb484
@@ -4,6 +4,6 @@
4
4
  <modelVersion>4.0.0</modelVersion>
5
5
  <groupId>com.transistorsoft</groupId>
6
6
  <artifactId>tslocationmanager-v21</artifactId>
7
- <version>3.6.4</version>
7
+ <version>3.6.5</version>
8
8
  <packaging>aar</packaging>
9
9
  </project>
@@ -0,0 +1 @@
1
+ 46ad7b023eece15fe5938cb2886ced3c4aaa6fc4e12d3e3697c9236b679c4422
@@ -0,0 +1 @@
1
+ da30761da395876e44525f31c72269a0ae7c3c3925eeb5d397b18a7cb04a7c8b4f37a5a12b5e2557c22990d2e51d021f721b918a477ef9d0973f9b975c13d4a2
@@ -3,15 +3,16 @@
3
3
  <groupId>com.transistorsoft</groupId>
4
4
  <artifactId>tslocationmanager-v21</artifactId>
5
5
  <versioning>
6
- <latest>3.6.4</latest>
7
- <release>3.6.4</release>
6
+ <latest>3.6.5</latest>
7
+ <release>3.6.5</release>
8
8
  <versions>
9
9
  <version>3.6.0</version>
10
10
  <version>3.6.1</version>
11
11
  <version>3.6.2</version>
12
12
  <version>3.6.3</version>
13
13
  <version>3.6.4</version>
14
+ <version>3.6.5</version>
14
15
  </versions>
15
- <lastUpdated>20241203042324</lastUpdated>
16
+ <lastUpdated>20250210143706</lastUpdated>
16
17
  </versioning>
17
18
  </metadata>
@@ -85,6 +85,7 @@ public class HeadlessTaskManager implements HeadlessJsTaskEventListener {
85
85
 
86
86
  private final Set<Task> mTaskQueue = new CopyOnWriteArraySet<>();
87
87
  private final AtomicBoolean mIsReactContextInitialized = new AtomicBoolean(false);
88
+ private final AtomicBoolean mWillDrainTaskQueue = new AtomicBoolean(false);
88
89
  private final AtomicBoolean mIsInitializingReactContext = new AtomicBoolean(false);
89
90
  private final AtomicBoolean mIsHeadlessJsTaskListenerRegistered = new AtomicBoolean(false);
90
91
 
@@ -265,14 +266,18 @@ public class HeadlessTaskManager implements HeadlessJsTaskEventListener {
265
266
  * @param reactContext
266
267
  */
267
268
  private void drainTaskQueue(final ReactContext reactContext) {
268
- new Handler(Looper.getMainLooper()).postDelayed(() -> {
269
- mTaskQueue.forEach((Task task) -> {
270
- boolean success = invokeStartTask(reactContext, task);
271
- if (!success) {
272
- removeTask(task);
269
+ if (mWillDrainTaskQueue.compareAndSet(false, true)) {
270
+ new Handler(Looper.getMainLooper()).postDelayed(() -> {
271
+ synchronized(mTaskQueue) {
272
+ mTaskQueue.forEach((Task task) -> {
273
+ boolean success = invokeStartTask(reactContext, task);
274
+ if (!success) {
275
+ removeTask(task);
276
+ }
277
+ });
273
278
  }
274
- });
275
- }, 250);
279
+ }, 250);
280
+ }
276
281
  }
277
282
 
278
283
  // Find a task in the queue.
@@ -356,8 +361,11 @@ public class HeadlessTaskManager implements HeadlessJsTaskEventListener {
356
361
  mParams.putInt("_transistorHeadlessTaskId", mId);
357
362
  }
358
363
 
359
-
360
364
  boolean invoke(ReactContext reactContext) throws IllegalStateException {
365
+ if (mReactTaskId > 0) {
366
+ TSLog.logger.warn(TSLog.warn("Task already invoked <IGNORED>: " + this));
367
+ return true;
368
+ }
361
369
  HeadlessJsTaskContext headlessJsTaskContext = HeadlessJsTaskContext.getInstance(reactContext);
362
370
  // Provide the RN taskId to our private TaskConfig instance, mapping the RN taskId to our TaskConfig's internal taskId.
363
371
 
@@ -393,7 +401,7 @@ public class HeadlessTaskManager implements HeadlessJsTaskEventListener {
393
401
  }
394
402
 
395
403
  public String toString() {
396
- return "[HeadlessTaskManager.Task name: " + mTaskName + " " + mParams + "]";
404
+ return "[HeadlessTaskManager.Task name: " + mTaskName + " id: " + mId + "]";
397
405
  }
398
406
 
399
407
  public static class Builder {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-background-geolocation",
3
- "version": "4.18.2",
3
+ "version": "4.18.4",
4
4
  "description": "The most sophisticated cross-platform background location-tracking & geofencing module with battery-conscious motion-detection intelligence",
5
5
  "scripts": {
6
6
  "build": "yarn run build:expo",
@@ -1 +0,0 @@
1
- d8523b683cf9d70e53317362389b81bebe6f1d9f
@@ -1 +0,0 @@
1
- 328f8a4a248f6d9d5ae95fad7d996eca1470e7e0d56bad5cba04d0fabf8c6632
@@ -1 +0,0 @@
1
- 18b6dea8cdb386ac662f7bbeff3a0061fa4855ae63e717db14a6009ed3027090407cc6c0ed97b566a260b57e1f8facbcdeb8b4424c47a27c237d6985878d75dd
@@ -1 +0,0 @@
1
- d4c0e936144e9629f09726d231ffb65382d117f8
@@ -1 +0,0 @@
1
- 29f18c0813aab1f46f264aae982c92a937c752f9d347371d0504db62885c615a
@@ -1 +0,0 @@
1
- 1710cfc5d6b4638db7eca4ba894a346d024f6041c79cbcdd165c3da68939eac4e1e1cb5c5b4ea7d933d6576fab4db08e79301efb42073186349a90bf00b283ed
@@ -1 +0,0 @@
1
- 6c1c89301376ea993978bc06f919edaaa29fb3fb
@@ -1 +0,0 @@
1
- 961d0d90ccb09bf5731a3a297c4e7fbacb9f24d20bdaa9dabc79b729d5a109eb
@@ -1 +0,0 @@
1
- 01e530f5a7f3db6a9d9d436f345093e5538421d16b663daf9682317829d67bb9a80d4a58de10e485235744793ae039267335c0dc680c54bdc814a7bc31d4f01f
@@ -1 +0,0 @@
1
- d003fdeb61221dbe7eccd3eae06a88464f4837ca
@@ -1 +0,0 @@
1
- 7e76a8d9ad740486eed08130a444e02a80959b615d0ae87899af8e85a3e0aa8b
@@ -1 +0,0 @@
1
- 56a88d4d6a4ca5061f3061bd5bd950a0c6afa271c6bdc5cfa960d77c39092d902736ffc32c53c99c2e55c02ea85f27aeec646e1cc3baceb48160a54dd86fe9b2