react-native-background-geolocation 4.13.2 → 4.14.0
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.
- package/RNBackgroundGeolocation.podspec +1 -1
- package/android/build.gradle +1 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.5.0/tslocationmanager-3.5.0.aar +0 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.5.0/tslocationmanager-3.5.0.aar.md5 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.5.0/tslocationmanager-3.5.0.aar.sha1 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.5.0/tslocationmanager-3.5.0.aar.sha256 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.5.0/tslocationmanager-3.5.0.aar.sha512 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/{3.4.4/tslocationmanager-3.4.4.pom → 3.5.0/tslocationmanager-3.5.0.pom} +1 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.5.0/tslocationmanager-3.5.0.pom.md5 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.5.0/tslocationmanager-3.5.0.pom.sha1 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.5.0/tslocationmanager-3.5.0.pom.sha256 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.5.0/tslocationmanager-3.5.0.pom.sha512 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/maven-metadata.xml +5 -7
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.0/tslocationmanager-v21-3.5.0.aar +0 -0
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.0/tslocationmanager-v21-3.5.0.aar.md5 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.0/tslocationmanager-v21-3.5.0.aar.sha1 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.0/tslocationmanager-v21-3.5.0.aar.sha256 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.0/tslocationmanager-v21-3.5.0.aar.sha512 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-v21/{3.4.4/tslocationmanager-v21-3.4.4.pom → 3.5.0/tslocationmanager-v21-3.5.0.pom} +1 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.0/tslocationmanager-v21-3.5.0.pom.md5 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.0/tslocationmanager-v21-3.5.0.pom.sha1 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.0/tslocationmanager-v21-3.5.0.pom.sha256 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.0/tslocationmanager-v21-3.5.0.pom.sha512 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-v21/maven-metadata.xml +5 -7
- package/android/src/main/java/com/transistorsoft/rnbackgroundgeolocation/RNBackgroundGeolocationModule.java +17 -1
- package/ios/RNBackgroundGeolocation/RNBackgroundGeolocation.m +5 -2
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/Info.plist +5 -5
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSGeofence.h +6 -2
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSGeofenceManager.h +10 -10
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSLocationManager.h +36 -36
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Info.plist +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Miniball/Miniball.hpp +525 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/TSLocationManager +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSGeofence.h +6 -2
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSGeofenceManager.h +10 -10
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSLocationManager.h +36 -36
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Resources/Info.plist +1 -1
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Resources/Miniball/Miniball.hpp +525 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/TSLocationManager +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSGeofence.h +6 -2
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSGeofenceManager.h +10 -10
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSLocationManager.h +36 -36
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Info.plist +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Miniball/Miniball.hpp +525 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/TSLocationManager +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeResources +25 -10
- package/package.json +1 -1
- package/src/declarations/interfaces/Config.d.ts +1 -1
- package/src/declarations/interfaces/Geofence.d.ts +78 -14
- package/src/declarations/types.d.ts +2 -2
- package/android/libs/com/transistorsoft/tslocationmanager/3.4.4/tslocationmanager-3.4.4.aar +0 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.4.4/tslocationmanager-3.4.4.aar.md5 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.4.4/tslocationmanager-3.4.4.aar.sha1 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.4.4/tslocationmanager-3.4.4.aar.sha256 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.4.4/tslocationmanager-3.4.4.aar.sha512 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.4.4/tslocationmanager-3.4.4.pom.md5 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.4.4/tslocationmanager-3.4.4.pom.sha1 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.4.4/tslocationmanager-3.4.4.pom.sha256 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.4.4/tslocationmanager-3.4.4.pom.sha512 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.4/tslocationmanager-v21-3.4.4.aar +0 -0
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.4/tslocationmanager-v21-3.4.4.aar.md5 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.4/tslocationmanager-v21-3.4.4.aar.sha1 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.4/tslocationmanager-v21-3.4.4.aar.sha256 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.4/tslocationmanager-v21-3.4.4.aar.sha512 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.4/tslocationmanager-v21-3.4.4.pom.md5 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.4/tslocationmanager-v21-3.4.4.pom.sha1 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.4/tslocationmanager-v21-3.4.4.pom.sha256 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.4/tslocationmanager-v21-3.4.4.pom.sha512 +0 -1
|
Binary file
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
</data>
|
|
75
75
|
<key>Headers/TSGeofence.h</key>
|
|
76
76
|
<data>
|
|
77
|
-
|
|
77
|
+
g9BTaWyQizmOylAWApRCoOvizt4=
|
|
78
78
|
</data>
|
|
79
79
|
<key>Headers/TSGeofenceEvent.h</key>
|
|
80
80
|
<data>
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
</data>
|
|
83
83
|
<key>Headers/TSGeofenceManager.h</key>
|
|
84
84
|
<data>
|
|
85
|
-
|
|
85
|
+
L0Sw7IQVlaKNK+gs0njVL6hN02s=
|
|
86
86
|
</data>
|
|
87
87
|
<key>Headers/TSGeofencesChangeEvent.h</key>
|
|
88
88
|
<data>
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
</data>
|
|
107
107
|
<key>Headers/TSLocationManager.h</key>
|
|
108
108
|
<data>
|
|
109
|
-
|
|
109
|
+
X2+HcvWlzuI9RHOY/vflS6WjcVg=
|
|
110
110
|
</data>
|
|
111
111
|
<key>Headers/TSPowerSaveChangeEvent.h</key>
|
|
112
112
|
<data>
|
|
@@ -138,7 +138,11 @@
|
|
|
138
138
|
</data>
|
|
139
139
|
<key>Info.plist</key>
|
|
140
140
|
<data>
|
|
141
|
-
|
|
141
|
+
kkcXy4iuym+vM6Im3Ze1uwJVBBM=
|
|
142
|
+
</data>
|
|
143
|
+
<key>Miniball/Miniball.hpp</key>
|
|
144
|
+
<data>
|
|
145
|
+
TR41GDyxS/iof60Pri6rj846vkU=
|
|
142
146
|
</data>
|
|
143
147
|
<key>Modules/module.modulemap</key>
|
|
144
148
|
<data>
|
|
@@ -338,11 +342,11 @@
|
|
|
338
342
|
<dict>
|
|
339
343
|
<key>hash</key>
|
|
340
344
|
<data>
|
|
341
|
-
|
|
345
|
+
g9BTaWyQizmOylAWApRCoOvizt4=
|
|
342
346
|
</data>
|
|
343
347
|
<key>hash2</key>
|
|
344
348
|
<data>
|
|
345
|
-
|
|
349
|
+
sCKypPAP5rEoTvON82aLGHAKIIMX8yZPW/ey3JAhaz0=
|
|
346
350
|
</data>
|
|
347
351
|
</dict>
|
|
348
352
|
<key>Headers/TSGeofenceEvent.h</key>
|
|
@@ -360,11 +364,11 @@
|
|
|
360
364
|
<dict>
|
|
361
365
|
<key>hash</key>
|
|
362
366
|
<data>
|
|
363
|
-
|
|
367
|
+
L0Sw7IQVlaKNK+gs0njVL6hN02s=
|
|
364
368
|
</data>
|
|
365
369
|
<key>hash2</key>
|
|
366
370
|
<data>
|
|
367
|
-
|
|
371
|
+
EJZnCC5PZkw2GaxqPVLZV2eLpW/G2GgEJM7nFYby1II=
|
|
368
372
|
</data>
|
|
369
373
|
</dict>
|
|
370
374
|
<key>Headers/TSGeofencesChangeEvent.h</key>
|
|
@@ -426,11 +430,11 @@
|
|
|
426
430
|
<dict>
|
|
427
431
|
<key>hash</key>
|
|
428
432
|
<data>
|
|
429
|
-
|
|
433
|
+
X2+HcvWlzuI9RHOY/vflS6WjcVg=
|
|
430
434
|
</data>
|
|
431
435
|
<key>hash2</key>
|
|
432
436
|
<data>
|
|
433
|
-
|
|
437
|
+
TrpWKCiP4P2pNAUvdax23S6/7NBBVDzbhT2IkAhBd7U=
|
|
434
438
|
</data>
|
|
435
439
|
</dict>
|
|
436
440
|
<key>Headers/TSPowerSaveChangeEvent.h</key>
|
|
@@ -510,6 +514,17 @@
|
|
|
510
514
|
UhY362SyloF998ML4MZxDcYLlsTYdyVCxIXu5XdvILo=
|
|
511
515
|
</data>
|
|
512
516
|
</dict>
|
|
517
|
+
<key>Miniball/Miniball.hpp</key>
|
|
518
|
+
<dict>
|
|
519
|
+
<key>hash</key>
|
|
520
|
+
<data>
|
|
521
|
+
TR41GDyxS/iof60Pri6rj846vkU=
|
|
522
|
+
</data>
|
|
523
|
+
<key>hash2</key>
|
|
524
|
+
<data>
|
|
525
|
+
RckEagFQ5wiSUIJvNw+CRzJdlX2S/XbRVQxFqSzIZVM=
|
|
526
|
+
</data>
|
|
527
|
+
</dict>
|
|
513
528
|
<key>Modules/module.modulemap</key>
|
|
514
529
|
<dict>
|
|
515
530
|
<key>hash</key>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-background-geolocation",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.14.0",
|
|
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",
|
|
@@ -1934,7 +1934,7 @@ declare module "react-native-background-geolocation" {
|
|
|
1934
1934
|
*
|
|
1935
1935
|
* Android can detect when the user has configured the device's *Settings->Location* in a manner that does not match your location request (eg: [[desiredAccuracy]]. For example, if the user configures *Settings->Location->Mode* with *Battery Saving* (ie: Wifi only) but you've specifically requested [[DESIRED_ACCURACY_HIGH]] (ie: GPS), Android will show a dialog asking the user to confirm the desired changes. If the user clicks `[OK]`, the OS will automcatically modify the Device settings.
|
|
1936
1936
|
*
|
|
1937
|
-
* 
|
|
1938
1938
|
*
|
|
1939
1939
|
* This automated Android dialog will be shown in the following cases:
|
|
1940
1940
|
* - [[BackgroundGeolocation.onProviderChange]]
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
declare module "react-native-background-geolocation" {
|
|
2
|
+
type Vertices = number[][];
|
|
3
|
+
|
|
2
4
|
/**
|
|
3
5
|
* The Background Geolocation SDK implements the native iOS and Android Geofencing APIs.
|
|
4
6
|
*
|
|
5
7
|
* __ℹ️ Note:__
|
|
6
|
-
* - Native iOS & Android API support only *circular* geofences.
|
|
8
|
+
* - Native iOS & Android API support only *circular* geofences, however the plugin does implement a custom mechanism for handling *Polygon Geofences*; see [[vertices]].
|
|
7
9
|
* - The minimum reliable [[radius]] is `200` meters.
|
|
8
|
-
* -
|
|
10
|
+
* - The native geofencing API for both iOS and Android *require* the user authorize [[locationAuthorizationRequest]] **`Always`** — **`When in Use`** will **not** work.
|
|
9
11
|
*
|
|
10
12
|
* ## Adding Geofences
|
|
11
13
|
*
|
|
@@ -32,7 +34,7 @@ declare module "react-native-background-geolocation" {
|
|
|
32
34
|
* Adding multiple geofences with [[addGeofences]].
|
|
33
35
|
* @example
|
|
34
36
|
* ```typescript
|
|
35
|
-
* BackgroundGeolocation.addGeofences([{
|
|
37
|
+
* await BackgroundGeolocation.addGeofences([{
|
|
36
38
|
* identifier: "Home",
|
|
37
39
|
* radius: 200,
|
|
38
40
|
* latitude: 45.51921926,
|
|
@@ -44,11 +46,9 @@ declare module "react-native-background-geolocation" {
|
|
|
44
46
|
* latitude: 45.61921927,
|
|
45
47
|
* longitude: -73.71678582,
|
|
46
48
|
* notifyOnEntry: true
|
|
47
|
-
* }])
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* console.log("[addGeofences] FAILURE: ", error);
|
|
51
|
-
* });
|
|
49
|
+
* }]);
|
|
50
|
+
* console.log("[addGeofences] success");
|
|
51
|
+
*
|
|
52
52
|
* ```
|
|
53
53
|
*
|
|
54
54
|
* __ℹ️ Note:__ Adding a geofence having an [[identifier]] which already exists within the SDK geofence database will cause the previous record to be destroyed and the new one inserted.
|
|
@@ -68,6 +68,18 @@ declare module "react-native-background-geolocation" {
|
|
|
68
68
|
* ```
|
|
69
69
|
*
|
|
70
70
|
* ---------------------------------------------------------------------------------------------------
|
|
71
|
+
*
|
|
72
|
+
* ## Polygon Geofencing
|
|
73
|
+
*
|
|
74
|
+
* The Background Geolocation SDK supports *Polygon Geofences* (Geofences of any shape). See API docs [[vertices]].
|
|
75
|
+
* * ℹ️ __*Polygon Geofencing*__ is [sold as a separate add-on](https://shop.transistorsoft.com/products/polygon-geofencing) (fully functional in *DEBUG* builds).
|
|
76
|
+
*
|
|
77
|
+
*
|
|
78
|
+
* 
|
|
79
|
+
* 
|
|
80
|
+
*
|
|
81
|
+
*
|
|
82
|
+
* ---------------------------------------------------------------------------------------------------
|
|
71
83
|
*
|
|
72
84
|
* ## Infinite Geofencing
|
|
73
85
|
*
|
|
@@ -101,7 +113,7 @@ declare module "react-native-background-geolocation" {
|
|
|
101
113
|
* // Remove map circles
|
|
102
114
|
* off.forEach((identifier) => {
|
|
103
115
|
* removeGeofenceMarker(identifier);
|
|
104
|
-
* }
|
|
116
|
+
* });
|
|
105
117
|
* });
|
|
106
118
|
* ```
|
|
107
119
|
* ### ⚠️ Note:
|
|
@@ -111,8 +123,8 @@ declare module "react-native-background-geolocation" {
|
|
|
111
123
|
*
|
|
112
124
|
* ## Removing Geofences
|
|
113
125
|
*
|
|
114
|
-
* Once a geofence has been inserted into the SDK's database using [[addGeofence]] or [[addGeofences]], they will be monitored *forever
|
|
115
|
-
* To cease monitoring a geofence or *geofences*, you must *remove* them from the SDK's database.
|
|
126
|
+
* Once a geofence has been inserted into the SDK's database using [[addGeofence]] or [[addGeofences]], they will be monitored *forever* (as long as the plugin remains `State.enabled == true`). If you've configured [[stopOnTerminate]] __`false`__ and [[startOnBoot]] __`true`__, geofences will continue to be monitored even if the application is terminated or device rebooted.
|
|
127
|
+
* To cease monitoring a geofence or *geofences*, you must *remove* them from the SDK's database (or call [[BackgroundGeolocation.stop]]).
|
|
116
128
|
*
|
|
117
129
|
* - Removing a single geofence by [[identifier]] with [[removeGeofence]]:
|
|
118
130
|
* @example
|
|
@@ -219,15 +231,15 @@ declare module "react-native-background-geolocation" {
|
|
|
219
231
|
* ⚠️ The minimum reliable `radius` is __`200`__ meters. Anything less will likely not cause a geofence to trigger. This is documented by Apple [here](https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/LocationAwarenessPG/RegionMonitoring/RegionMonitoring.html):
|
|
220
232
|
* > *"The specific threshold distances are determined by the hardware and the location technologies that are currently available. For example, if WiFi is disabled, region monitoring is significantly less accurate. However, for testing purposes, __you can assume that the minimum distance is approximately 200 meters__*".
|
|
221
233
|
*/
|
|
222
|
-
radius
|
|
234
|
+
radius?: number;
|
|
223
235
|
/**
|
|
224
236
|
* Latitude of geofence center
|
|
225
237
|
*/
|
|
226
|
-
latitude
|
|
238
|
+
latitude?: number;
|
|
227
239
|
/**
|
|
228
240
|
* Longitude of geofence center.
|
|
229
241
|
*/
|
|
230
|
-
longitude
|
|
242
|
+
longitude?: number;
|
|
231
243
|
/**
|
|
232
244
|
* Set `true` to fire event when device *enters* this geofence.
|
|
233
245
|
*
|
|
@@ -251,5 +263,57 @@ declare module "react-native-background-geolocation" {
|
|
|
251
263
|
* Arbitrary key-values appended to the geofence event and posted to your configured [[Config.url]].
|
|
252
264
|
*/
|
|
253
265
|
extras?: Extras;
|
|
266
|
+
/**
|
|
267
|
+
* Optional: a list of vertices (`[ [lat, lng],...]`) defining a Polygon geofence. By default, geofences are circular.
|
|
268
|
+
*
|
|
269
|
+
* ℹ️ __*Polygon Geofencing*__ is [sold as a separate add-on](https://shop.transistorsoft.com/products/polygon-geofencing) (fully functional in *DEBUG* builds).
|
|
270
|
+
*
|
|
271
|
+
*
|
|
272
|
+
* When defining a polygon geofence, you do **not** provide [[latitude]], [[longitude]] or [[radius]] — those will be automatically calculated based upon the geometry of the polygon.
|
|
273
|
+
*
|
|
274
|
+
* The following image shows polygon geofences on a map:
|
|
275
|
+
*
|
|
276
|
+
* 
|
|
277
|
+
*
|
|
278
|
+
* The *blue polygons* represent the *actual* polygon geofences and the containing *green circles* are traditional circular geofences provided by the native *iOS/Android* Geofencing APIs. The background-geolocation SDK automatically calculates the containing, native cirular geofence by solving the [*minimum enclosing circle*](https://en.wikipedia.org/wiki/Smallest-circle_problem) for the given [[vertices]].
|
|
279
|
+
* This is why you do not provide [[latitude]], [[longitude]] and [[radius]].
|
|
280
|
+
*
|
|
281
|
+
* - When the device *enters* the containing circular geofence, the SDK uses that as a signal that the device is approaching a polygon. At this moment, the SDK begins aggressively monitoring the location to perform "hit-testing" upon the polygon using a fast algorithm implemented with C++ code.
|
|
282
|
+
* - When the device *exits* the containing circular geofence, that's the SDK's signal for it to *cease* monitoring that polygon.
|
|
283
|
+
*
|
|
284
|
+
* @example
|
|
285
|
+
* ```javascript
|
|
286
|
+
* BackgroundGeolocation.addGeofence({
|
|
287
|
+
* identifier: 'Home',
|
|
288
|
+
* notifyOnEntry: true,
|
|
289
|
+
* notifyOnExit: true,
|
|
290
|
+
* vertices: [
|
|
291
|
+
* [45.518947279987714, -73.6049889209514], // <-- [lat, lng]
|
|
292
|
+
* [45.5182711292279, -73.60338649600598],
|
|
293
|
+
* [45.517082240237634, -73.60432670908212],
|
|
294
|
+
* [45.51774871402813, -73.60604928622278]
|
|
295
|
+
* ]
|
|
296
|
+
* });
|
|
297
|
+
* ```
|
|
298
|
+
*
|
|
299
|
+
* - #### Entering / exiting a *cross-shaped* polygon geofence:
|
|
300
|
+
*
|
|
301
|
+
* 
|
|
302
|
+
*
|
|
303
|
+
* - #### Entering / exiting a park:
|
|
304
|
+
*
|
|
305
|
+
* 
|
|
306
|
+
*
|
|
307
|
+
* - #### Entering / exiting a diamond-shaped polygon:
|
|
308
|
+
*
|
|
309
|
+
* 
|
|
310
|
+
*
|
|
311
|
+
* - #### Designing a polygon geofence around a park using the demo app:
|
|
312
|
+
*
|
|
313
|
+
* 
|
|
314
|
+
*
|
|
315
|
+
*
|
|
316
|
+
*/
|
|
317
|
+
vertices?: Vertices
|
|
254
318
|
}
|
|
255
319
|
}
|
|
@@ -141,7 +141,7 @@ declare module "react-native-background-geolocation" {
|
|
|
141
141
|
* | 408 | Location timeout |
|
|
142
142
|
* | 499 | Location request cancelled |
|
|
143
143
|
*/
|
|
144
|
-
type LocationError = 0 | 1 | 2 | 408 | 499;
|
|
144
|
+
type LocationError = 0 | 1 | 2 | 3 | 408 | 499;
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
147
|
* iOS Location authorization request.
|
|
@@ -156,7 +156,7 @@ declare module "react-native-background-geolocation" {
|
|
|
156
156
|
|
|
157
157
|
type PersistMode = -1 | 0 | 1 | 2;
|
|
158
158
|
|
|
159
|
-
type Extras = {[key: string]: string|null|number|boolean|Extras|string[]|number[]|boolean[]|Extras[]};
|
|
159
|
+
type Extras = {[key: string]: string|null|number|boolean|Extras|string[]|number[]|number[][]|boolean[]|Extras[]};
|
|
160
160
|
|
|
161
161
|
/**
|
|
162
162
|
* Controls ordering of [[SQLQuery.order]]
|
|
Binary file
|
package/android/libs/com/transistorsoft/tslocationmanager/3.4.4/tslocationmanager-3.4.4.aar.md5
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
4e89f0c39d8a0515a4f7e5bc684a6618
|
package/android/libs/com/transistorsoft/tslocationmanager/3.4.4/tslocationmanager-3.4.4.aar.sha1
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
d8e4bcb099553b932f6e30bcacd31255115e85e1
|
package/android/libs/com/transistorsoft/tslocationmanager/3.4.4/tslocationmanager-3.4.4.aar.sha256
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
fea5c7b408bb26ac1edf2415c57e351ff7b7cb6a99b25300664a1f5815e640ec
|
package/android/libs/com/transistorsoft/tslocationmanager/3.4.4/tslocationmanager-3.4.4.aar.sha512
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1285c0ea29703a6384bc8bf0024b0ec5eb52092b307650e1a1713913d483008047dbe255959b7aa58755d8450dd853991772dacaec1f86114c2485353e799799
|
package/android/libs/com/transistorsoft/tslocationmanager/3.4.4/tslocationmanager-3.4.4.pom.md5
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0ce90014cca1700e6ec4d95fe16348dd
|
package/android/libs/com/transistorsoft/tslocationmanager/3.4.4/tslocationmanager-3.4.4.pom.sha1
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
6f11dfebb67289ce9a867b2321b9ff1555a4539c
|
package/android/libs/com/transistorsoft/tslocationmanager/3.4.4/tslocationmanager-3.4.4.pom.sha256
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
efe2faae055a230b749893a81163785c53d0df552ad51063799166f232d962da
|
package/android/libs/com/transistorsoft/tslocationmanager/3.4.4/tslocationmanager-3.4.4.pom.sha512
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
b66b60b6d53093f71841ba374cadccc615600fc406f94d6bdd98a2f872f60864b12620be24af52899574f6bd2a28f59074c6cdac98058de6459623a6e0233656
|
package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.4/tslocationmanager-v21-3.4.4.aar
DELETED
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
e53f6c9241c54bc8da86deae822dd965
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
58ce39d185fe751c4359de743ccb9afd0102a633
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
b34d9ba24315e6afc80b770daffe4419475f5b693c056ccd8c2b048c98ab3642
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
495aa3b80af740c5e463f4049524053603744fa044c33ba7322e4e2a0fddd257a5d38b9517e8b3d4a8bdf6fc52791b6aafaf4ddd1a69c2a6062ccf335775b98b
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
9c833b7040ae46109b4ed3445d33f3e5
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
3b45e93482f2aebe866bbe7767bc1d5a3b7585cd
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
858308d408f1a124af0825ccb8fa3a55d6ed9cfccf432d649ad52b5e40921a6c
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
32830cae413d315e06a459a44ffb9a5e4674e0197a5f55b54b7a96ec71a71edbcab8b2d71fc18a394e12292e8b7d8df9927ec12a5e5b47d555a7adf0790b27b4
|