@transistorsoft/capacitor-background-geolocation 4.11.0 → 4.11.1

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.
@@ -33,7 +33,7 @@ def DEFAULT_APP_COMPAT_VERSION = "1.4.1"
33
33
 
34
34
  // Plugin dependencies
35
35
  def DEFAULT_GOOGLE_PLAY_SERVICES_LOCATION_VERSION = "20.0.0"
36
- def DEFAULT_HMS_LOCATION_VERSION = "6.0.0.302"
36
+ def DEFAULT_HMS_LOCATION_VERSION = "6.9.0.300"
37
37
  def DEFAULT_OK_HTTP_VERSION = "3.12.13"
38
38
  def DEFAULT_ANDROID_PERMISSIONS_VERSION = "2.1.6"
39
39
  def DEFAULT_EVENTBUS_VERSION = "3.3.1"
@@ -1 +1 @@
1
- ddaeb1f78609e90acb64b61179b62a4f
1
+ 463089cd2528dbb18d27b6d167a053a1
@@ -1 +1 @@
1
- a0219fe44e792f920aaac2d60e36f1907b689654
1
+ 7013a8804427cc233b7c9c0849bbcdf13527fc07
@@ -1 +1 @@
1
- 032fcc5b964a341d8f1eb186354d15458d1321a905f7fdd83fd9cbb9c2b30ad9
1
+ 9db6b0bfcca091ff015c741bac9e3568b9b3b3ff872e338a317b60b284f3d1ae
@@ -1 +1 @@
1
- 7699e9af63c583971c24b039b92989a566c54a9f4f705faa8d42cca753f209d1e1bc61401229c9d4b3d8cf4e7535e0b5de5f43984c53f397d980d3a53cd85dca
1
+ c0132cc82b61945a5041821f93bfada9b69a37cc63c04f122e3f64931e132b40b05c463f7dc74c8ef5a5eb93a2b999f5bb8f8ed06a7633c817a1d0a1259d9817
@@ -8,6 +8,6 @@
8
8
  <versions>
9
9
  <version>3.4.0</version>
10
10
  </versions>
11
- <lastUpdated>20230329140935</lastUpdated>
11
+ <lastUpdated>20230330165939</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- 698e1c71f30dd8815cd1e3e7065942d8
1
+ 290b8cd91f3fa2b28ed2387a3d111041
@@ -1 +1 @@
1
- 06db0e27efe59adbc6027273a0891ac1aab569cb
1
+ 533db0ef5360676d9fb8f345273f9aafa6cb19e3
@@ -1 +1 @@
1
- 7461e70dc314d6f6cdb1239b289060769785eb9b6c4a35003b176a12c1e28169
1
+ f9b4b97aa7a35a34391de503096a21624523cfc3fea0b463caeb2ff160b8c782
@@ -1 +1 @@
1
- 3408b8a7569637de2ee6cbf9df9ed2a2a015325bd7ea771b3961deb6c985873827867e90925b6ba46d547225a07364b00bca8e7c53f89ce99ba360397f45a8f5
1
+ 49aa9ac6a9e8c9840d43b58df2949f05c73cc27277987d209ea37d46f3a84df138f7144b86ac0215ec2bb7f7675cd81ad0b90f5a7fa5e34c4a7836c019a97e2b
@@ -8,6 +8,6 @@
8
8
  <versions>
9
9
  <version>3.4.0</version>
10
10
  </versions>
11
- <lastUpdated>20230329140935</lastUpdated>
11
+ <lastUpdated>20230330165939</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -988,7 +988,11 @@ public class BackgroundGeolocationPlugin extends Plugin {
988
988
  bgGeo.onLocation(new TSLocationCallback() {
989
989
  @Override
990
990
  public void onLocation(TSLocation tsLocation) {
991
- handleEvent(BackgroundGeolocation.EVENT_LOCATION, tsLocation.toJson());
991
+ try {
992
+ handleEvent(BackgroundGeolocation.EVENT_LOCATION, tsLocation.toJson());
993
+ } catch (JSONException e) {
994
+ TSLog.logger.error(e.getMessage(), e);
995
+ }
992
996
  }
993
997
 
994
998
  @Override
@@ -1005,8 +1009,12 @@ public class BackgroundGeolocationPlugin extends Plugin {
1005
1009
  if (!hasListeners(BackgroundGeolocation.EVENT_MOTIONCHANGE)) return;
1006
1010
  JSObject params = new JSObject();
1007
1011
  params.put("isMoving", location.getIsMoving());
1008
- params.put("location", location.toJson());
1009
- notifyListeners(BackgroundGeolocation.EVENT_MOTIONCHANGE, params);
1012
+ try {
1013
+ params.put("location", location.toJson());
1014
+ notifyListeners(BackgroundGeolocation.EVENT_MOTIONCHANGE, params);
1015
+ } catch (JSONException e) {
1016
+ TSLog.logger.error(e.getMessage(), e);
1017
+ }
1010
1018
  }
1011
1019
  @Override public void onError(Integer integer) {
1012
1020
  if (!hasListeners(BackgroundGeolocation.EVENT_MOTIONCHANGE)) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transistorsoft/capacitor-background-geolocation",
3
- "version": "4.11.0",
3
+ "version": "4.11.1",
4
4
  "description": "The most sophisticated cross platform Capacitor background location tracking & geofencing module with battery-conscious motion-detection intelligence",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/index.js",