@transistorsoft/capacitor-background-geolocation 4.4.0 → 4.4.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.
- package/LICENSE +22 -0
- package/README.md +256 -87
- package/android/libs/com/transistorsoft/tslocationmanager/{3.1.34/tslocationmanager-3.1.34.aar → 3.1.36/tslocationmanager-3.1.36.aar} +0 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.1.36/tslocationmanager-3.1.36.aar.md5 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.1.36/tslocationmanager-3.1.36.aar.sha1 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.1.36/tslocationmanager-3.1.36.aar.sha256 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.1.36/tslocationmanager-3.1.36.aar.sha512 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/{3.1.34/tslocationmanager-3.1.34.pom → 3.1.36/tslocationmanager-3.1.36.pom} +1 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.1.36/tslocationmanager-3.1.36.pom.md5 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.1.36/tslocationmanager-3.1.36.pom.sha1 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.1.36/tslocationmanager-3.1.36.pom.sha256 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.1.36/tslocationmanager-3.1.36.pom.sha512 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/maven-metadata.xml +5 -6
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/{3.1.34/tslocationmanager-reverse-3.1.34.aar → 3.1.36/tslocationmanager-reverse-3.1.36.aar} +0 -0
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.1.36/tslocationmanager-reverse-3.1.36.aar.md5 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.1.36/tslocationmanager-reverse-3.1.36.aar.sha1 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.1.36/tslocationmanager-reverse-3.1.36.aar.sha256 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.1.36/tslocationmanager-reverse-3.1.36.aar.sha512 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/{3.1.34/tslocationmanager-reverse-3.1.34.pom → 3.1.36/tslocationmanager-reverse-3.1.36.pom} +1 -1
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.1.36/tslocationmanager-reverse-3.1.36.pom.md5 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.1.36/tslocationmanager-reverse-3.1.36.pom.sha1 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.1.36/tslocationmanager-reverse-3.1.36.pom.sha256 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.1.36/tslocationmanager-reverse-3.1.36.pom.sha512 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/maven-metadata.xml +5 -6
- package/android/src/main/java/com/transistorsoft/bggeo/capacitor/BackgroundGeolocationPlugin.java +7 -5
- package/ios/Plugin/BackgroundGeolocationModule.m +8 -6
- package/ios/TSLocationManager.xcframework/Info.plist +5 -5
- package/ios/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Info.plist +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/TSLocationManager +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Info.plist +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/TSLocationManager +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeResources +1 -1
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Resources/Info.plist +9 -9
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/TSLocationManager +0 -0
- package/package.json +1 -1
- package/CHANGELOG.md +0 -75
- package/android/libs/com/transistorsoft/tslocationmanager/3.1.34/tslocationmanager-3.1.34.aar.md5 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.1.34/tslocationmanager-3.1.34.aar.sha1 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.1.34/tslocationmanager-3.1.34.aar.sha256 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.1.34/tslocationmanager-3.1.34.aar.sha512 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.1.34/tslocationmanager-3.1.34.pom.md5 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.1.34/tslocationmanager-3.1.34.pom.sha1 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.1.34/tslocationmanager-3.1.34.pom.sha256 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.1.34/tslocationmanager-3.1.34.pom.sha512 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.1.34/tslocationmanager-reverse-3.1.34.aar.md5 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.1.34/tslocationmanager-reverse-3.1.34.aar.sha1 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.1.34/tslocationmanager-reverse-3.1.34.aar.sha256 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.1.34/tslocationmanager-reverse-3.1.34.aar.sha512 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.1.34/tslocationmanager-reverse-3.1.34.pom.md5 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.1.34/tslocationmanager-reverse-3.1.34.pom.sha1 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.1.34/tslocationmanager-reverse-3.1.34.pom.sha256 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.1.34/tslocationmanager-reverse-3.1.34.pom.sha512 +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015 Chris Scott
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
package/README.md
CHANGED
|
@@ -29,6 +29,7 @@ The **[Android module](http://www.transistorsoft.com/shop/products/capacitor-bac
|
|
|
29
29
|

|
|
30
30
|
|
|
31
31
|
# Contents
|
|
32
|
+
- ### 😫 [Help!](../../wiki/Help)
|
|
32
33
|
- ### :books: [API Documentation](https://transistorsoft.github.io/capacitor-background-geolocation)
|
|
33
34
|
- ### [Installing the Plugin](#large_blue_diamond-installing-the-plugin)
|
|
34
35
|
- ### [Setup Guides](#large_blue_diamond-setup-guides)
|
|
@@ -109,92 +110,285 @@ There are three main steps to using `BackgroundGeolocation`
|
|
|
109
110
|
2. `#ready` the plugin.
|
|
110
111
|
3. `#start` the plugin.
|
|
111
112
|
|
|
113
|
+
:warning: Do not execute *any* API method which will require accessing location-services until the callback to **`#ready`** executes (eg: `#getCurrentPosition`, `#watchPosition`, `#start`).
|
|
114
|
+
|
|
115
|
+
|
|
112
116
|
```javascript
|
|
113
|
-
//
|
|
114
|
-
|
|
117
|
+
// NO! .ready() has not resolved.
|
|
118
|
+
BackgroundGeolocation.getCurrentPosition(options);
|
|
119
|
+
BackgroundGeolocation.start();
|
|
120
|
+
|
|
121
|
+
BackgroundGeolocation.ready(config).then((state) => {
|
|
122
|
+
// YES -- .ready() has now resolved.
|
|
123
|
+
BackgroundGeolocation.getCurrentPosition(options);
|
|
124
|
+
BackgroundGeolocation.start();
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
// NO! .ready() has not resolved.
|
|
128
|
+
BackgroundGeolocation.getCurrentPosition(options);
|
|
129
|
+
BackgroundGeolocation.start();
|
|
130
|
+
```
|
|
131
|
+
---------------------------------------------------------------------------------------------
|
|
132
|
+
|
|
133
|
+
### Example 1. — *React*
|
|
134
|
+
|
|
135
|
+
<img alt="alt_text" width="50px" src="https://hackr.io/tutorials/react/logo-react.svg?ver=1610114789" />
|
|
136
|
+
|
|
137
|
+
<details>
|
|
138
|
+
<summary>View Source</summary>
|
|
139
|
+
|
|
140
|
+
```typescript
|
|
141
|
+
import {
|
|
142
|
+
IonContent,
|
|
143
|
+
IonHeader,
|
|
144
|
+
IonPage,
|
|
145
|
+
IonTitle,
|
|
146
|
+
IonToolbar,
|
|
147
|
+
IonButtons,
|
|
148
|
+
IonToggle,
|
|
149
|
+
IonItemDivider,
|
|
150
|
+
IonLabel
|
|
151
|
+
} from '@ionic/react';
|
|
152
|
+
|
|
153
|
+
import React from "react";
|
|
154
|
+
|
|
155
|
+
import BackgroundGeolocation, {
|
|
156
|
+
Subscription
|
|
157
|
+
} from "@transistorsoft/capacitor-background-geolocation";
|
|
158
|
+
|
|
159
|
+
const HelloWorld: React.FC = () => {
|
|
160
|
+
const [ready, setReady] = React.useState(false);
|
|
161
|
+
const [enabled, setEnabled] = React.useState(false);
|
|
162
|
+
const [events, setEvents] = React.useState<any[]>([]);
|
|
163
|
+
|
|
164
|
+
const addEvent = (name: string, event:any) => {
|
|
165
|
+
setEvents(previous => [...previous, {
|
|
166
|
+
name: name,
|
|
167
|
+
json: JSON.stringify(event, null, 2)
|
|
168
|
+
}]);
|
|
169
|
+
}
|
|
115
170
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
///
|
|
122
|
-
async ngAfterContentInit() {
|
|
123
|
-
////
|
|
124
|
-
// 1. Wire up event-listeners
|
|
125
|
-
//
|
|
126
|
-
|
|
127
|
-
// This handler fires whenever bgGeo receives a location update.
|
|
128
|
-
BackgroundGeolocation.onLocation((location) => {
|
|
129
|
-
console.log('[onLocation]', location);
|
|
130
|
-
}, ((error) => { // <-- Location errors
|
|
131
|
-
console.log('[onLocation] ERROR:', error);
|
|
132
|
-
});
|
|
171
|
+
React.useEffect(() => {
|
|
172
|
+
/// 1. Subscribe to events.
|
|
173
|
+
const onLocation:Subscription = BackgroundGeolocation.onLocation((location) => {
|
|
174
|
+
addEvent('onLocation', location);
|
|
175
|
+
})
|
|
133
176
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
console.log('[onMotionChange]', location);
|
|
177
|
+
const onMotionChange:Subscription = BackgroundGeolocation.onMotionChange((event) => {
|
|
178
|
+
addEvent('onMotionChange', event);
|
|
137
179
|
});
|
|
138
180
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
});
|
|
181
|
+
const onActivityChange:Subscription = BackgroundGeolocation.onActivityChange((event) => {
|
|
182
|
+
addEvent('onActivityChange', event);
|
|
183
|
+
})
|
|
143
184
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
185
|
+
const onProviderChange:Subscription = BackgroundGeolocation.onProviderChange((event) => {
|
|
186
|
+
addEvent('onProviderChange', event);
|
|
187
|
+
})
|
|
188
|
+
|
|
189
|
+
/// 2. ready the plugin.
|
|
190
|
+
BackgroundGeolocation.ready({
|
|
191
|
+
// Geolocation Config
|
|
192
|
+
desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,
|
|
193
|
+
distanceFilter: 10,
|
|
194
|
+
// Activity Recognition
|
|
195
|
+
stopTimeout: 5,
|
|
196
|
+
// Application config
|
|
197
|
+
debug: true, // <-- enable this hear sounds for background-geolocation life-cycle.
|
|
198
|
+
logLevel: BackgroundGeolocation.LOG_LEVEL_VERBOSE,
|
|
199
|
+
stopOnTerminate: false, // <-- Allow the background-service to continue tracking when user closes the app.
|
|
200
|
+
startOnBoot: true, // <-- Auto start tracking when device is powered-up.
|
|
201
|
+
}).then((state) => {
|
|
202
|
+
setReady(true);
|
|
203
|
+
setEnabled(state.enabled)
|
|
204
|
+
addEvent('State', state);
|
|
147
205
|
});
|
|
148
206
|
|
|
149
|
-
|
|
207
|
+
return () => {
|
|
208
|
+
// Remove BackgroundGeolocation event-subscribers when the View is removed or refreshed
|
|
209
|
+
// during development live-reload. Without this, event-listeners will accumulate with
|
|
210
|
+
// each refresh during live-reload.
|
|
211
|
+
onLocation.remove();
|
|
212
|
+
onMotionChange.remove();
|
|
213
|
+
onActivityChange.remove();
|
|
214
|
+
onProviderChange.remove();
|
|
215
|
+
}
|
|
216
|
+
}, []);
|
|
217
|
+
|
|
218
|
+
/// 3. start / stop BackgroundGeolocation
|
|
219
|
+
React.useEffect(() => {
|
|
220
|
+
if (!ready) { return }
|
|
221
|
+
|
|
222
|
+
if (enabled) {
|
|
223
|
+
BackgroundGeolocation.start();
|
|
224
|
+
} else {
|
|
225
|
+
BackgroundGeolocation.stop();
|
|
226
|
+
setEvents([]);
|
|
227
|
+
}
|
|
228
|
+
}, [enabled]);
|
|
229
|
+
|
|
230
|
+
return (
|
|
231
|
+
<IonPage>
|
|
232
|
+
<IonHeader>
|
|
233
|
+
<IonToolbar>
|
|
234
|
+
<IonButtons slot="end">
|
|
235
|
+
<IonLabel>Toggle to <code>{(enabled ? 'stop()' : 'start()')}</code> —></IonLabel>
|
|
236
|
+
<IonToggle checked={enabled} onIonChange={e => setEnabled(e.detail.checked)}/>
|
|
237
|
+
</IonButtons>
|
|
238
|
+
</IonToolbar>
|
|
239
|
+
</IonHeader>
|
|
240
|
+
<IonContent fullscreen>
|
|
241
|
+
<div style={{padding:10}}>
|
|
242
|
+
{ events.slice().reverse().map((event, i) => (
|
|
243
|
+
<div key={i}>
|
|
244
|
+
<p><strong>{event.name}</strong></p>
|
|
245
|
+
<small><pre><code>{event.json}</code></pre></small>
|
|
246
|
+
<IonItemDivider />
|
|
247
|
+
</div>
|
|
248
|
+
))}
|
|
249
|
+
</div>
|
|
250
|
+
</IonContent>
|
|
251
|
+
</IonPage>
|
|
252
|
+
)
|
|
253
|
+
}
|
|
254
|
+
```
|
|
150
255
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
256
|
+
</details>
|
|
257
|
+
|
|
258
|
+
---------------------------------------------------------------------------------------------
|
|
259
|
+
|
|
260
|
+
### Example 2. — *Angular*
|
|
261
|
+
|
|
262
|
+
<img alt="alt_text" width="55px" src="https://dl.dropbox.com/s/w4hw88clxqmlis2/angular-logo.svg?dl=1" />
|
|
263
|
+
|
|
264
|
+
<details>
|
|
265
|
+
<summary>View Source</summary>
|
|
266
|
+
|
|
267
|
+
```typescript
|
|
268
|
+
import {
|
|
269
|
+
Component,
|
|
270
|
+
NgZone,
|
|
271
|
+
OnDestroy
|
|
272
|
+
} from '@angular/core'
|
|
273
|
+
|
|
274
|
+
import BackgroundGeolocation, {
|
|
275
|
+
Location,
|
|
276
|
+
Subscription
|
|
277
|
+
} from "@transistorsoft/capacitor-background-geolocation";
|
|
278
|
+
|
|
279
|
+
@Component({
|
|
280
|
+
selector: 'hello-world',
|
|
281
|
+
template: `
|
|
282
|
+
<ion-header>
|
|
283
|
+
<ion-toolbar>
|
|
284
|
+
<ion-buttons slot="end">
|
|
285
|
+
<ion-label>Toggle to <code>{{(enabled ? 'stop()' : 'start()')}}</code> —></ion-label>
|
|
286
|
+
<ion-toggle [(ngModel)]="enabled" (ionChange)="onToggleEnabled()" style="display:block;"></ion-toggle>
|
|
287
|
+
</ion-buttons>
|
|
288
|
+
</ion-toolbar>
|
|
289
|
+
</ion-header>
|
|
290
|
+
<ion-content fullscreen>
|
|
291
|
+
<div *ngFor="let event of events.slice().reverse()" style="padding:10px">
|
|
292
|
+
<div>
|
|
293
|
+
<p><strong>{{event.name}}</strong></p>
|
|
294
|
+
<small><pre><code>{{event.json}}</code></pre></small>
|
|
295
|
+
<ion-item-divider></ion-item-divider>
|
|
296
|
+
</div>
|
|
297
|
+
</div>
|
|
298
|
+
</ion-content>
|
|
299
|
+
`,
|
|
300
|
+
styles: []
|
|
301
|
+
})
|
|
302
|
+
|
|
303
|
+
export class HelloWorldPage implements OnDestroy {
|
|
304
|
+
ready:boolean = false;
|
|
305
|
+
enabled:boolean = false;
|
|
306
|
+
events:any = [];
|
|
307
|
+
subscriptions:Subscription[] = [];
|
|
308
|
+
|
|
309
|
+
constructor(private zone:NgZone) {}
|
|
310
|
+
|
|
311
|
+
/// WARNING: DO NOT Use ionViewWillEnter to configure the SDK -- use ngAfterContentInit.
|
|
312
|
+
/// ionViewWillEnter only executes when the app is brought to the foreground.
|
|
313
|
+
/// It will NOT execute when the app is launched in the background, as the SDK will often do.
|
|
314
|
+
///
|
|
315
|
+
ngAfterContentInit() {
|
|
316
|
+
/// Step 1: Subscribe to BackgroundGeolocation events.
|
|
317
|
+
this.subscriptions.push(BackgroundGeolocation.onLocation((location) => {
|
|
318
|
+
this.addEvent('onLocation', location);
|
|
319
|
+
}))
|
|
320
|
+
|
|
321
|
+
this.subscriptions.push(BackgroundGeolocation.onMotionChange((event) => {
|
|
322
|
+
this.addEvent('onMotionChange', event);
|
|
323
|
+
}))
|
|
324
|
+
|
|
325
|
+
this.subscriptions.push(BackgroundGeolocation.onActivityChange((event) => {
|
|
326
|
+
this.addEvent('onActivityChange', event);
|
|
327
|
+
}))
|
|
328
|
+
|
|
329
|
+
this.subscriptions.push(BackgroundGeolocation.onProviderChange((event) => {
|
|
330
|
+
this.addEvent('onProviderChange', event);
|
|
331
|
+
}))
|
|
332
|
+
|
|
333
|
+
/// Step 2: Ready the plugin.
|
|
154
334
|
BackgroundGeolocation.ready({
|
|
155
335
|
// Geolocation Config
|
|
156
336
|
desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,
|
|
157
337
|
distanceFilter: 10,
|
|
158
338
|
// Activity Recognition
|
|
159
|
-
stopTimeout:
|
|
339
|
+
stopTimeout: 5,
|
|
160
340
|
// Application config
|
|
161
341
|
debug: true, // <-- enable this hear sounds for background-geolocation life-cycle.
|
|
162
342
|
logLevel: BackgroundGeolocation.LOG_LEVEL_VERBOSE,
|
|
163
343
|
stopOnTerminate: false, // <-- Allow the background-service to continue tracking when user closes the app.
|
|
164
344
|
startOnBoot: true, // <-- Auto start tracking when device is powered-up.
|
|
165
|
-
// HTTP / SQLite config
|
|
166
|
-
url: 'http://yourserver.com/locations',
|
|
167
|
-
batchSync: false, // <-- [Default: false] Set true to sync locations to server in a single HTTP request.
|
|
168
|
-
autoSync: true, // <-- [Default: true] Set true to sync each location to server as it arrives.
|
|
169
|
-
headers: { // <-- Optional HTTP headers
|
|
170
|
-
"X-FOO": "bar"
|
|
171
|
-
},
|
|
172
|
-
params: { // <-- Optional HTTP params append to each HTTP request
|
|
173
|
-
"auth_token": "maybe_your_server_authenticates_via_token_YES?"
|
|
174
|
-
},
|
|
175
|
-
extras: { // <-- Optional meta-data appended to each recorded location.
|
|
176
|
-
"foo": "bar"
|
|
177
|
-
}
|
|
178
345
|
}).then((state) => {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
// 3. Start tracking!
|
|
184
|
-
//
|
|
185
|
-
BackgroundGeolocation.start().then(() => {
|
|
186
|
-
console.log("[start] success");
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
}).catch((error) => {
|
|
190
|
-
console.warn('[BackgroundGeolocation ready] ERROR: ', error);
|
|
346
|
+
// BackgroundGeolocation is now ready to use.
|
|
347
|
+
this.ready = true;
|
|
348
|
+
this.enabled = state.enabled;
|
|
349
|
+
this.addEvent('State', state);
|
|
191
350
|
});
|
|
192
351
|
}
|
|
193
|
-
}
|
|
194
352
|
|
|
353
|
+
/// When view is destroyed, be sure to .remove() all BackgroundGeolocation
|
|
354
|
+
/// event-subscriptions.
|
|
355
|
+
ngOnDestroy() {
|
|
356
|
+
this.subscriptions.forEach((subscription:Subscription) => {
|
|
357
|
+
subscription.remove();
|
|
358
|
+
})
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/// Add an event to the view.
|
|
362
|
+
addEvent(name:string, event:any) {
|
|
363
|
+
this.zone.run(() => {
|
|
364
|
+
this.events.push({
|
|
365
|
+
name: name,
|
|
366
|
+
json: JSON.stringify(event, null, 2)
|
|
367
|
+
})
|
|
368
|
+
})
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/// Toggle the plugin on/off.
|
|
372
|
+
onToggleEnabled() {
|
|
373
|
+
if (!this.ready) { return }
|
|
374
|
+
|
|
375
|
+
this.events = [];
|
|
376
|
+
if (this.enabled) {
|
|
377
|
+
BackgroundGeolocation.start().then((state) => {
|
|
378
|
+
this.addEvent('State', state);
|
|
379
|
+
})
|
|
380
|
+
} else {
|
|
381
|
+
BackgroundGeolocation.stop().then((state) => {
|
|
382
|
+
this.addEvent('State', state);
|
|
383
|
+
})
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
195
387
|
```
|
|
196
388
|
|
|
197
|
-
|
|
389
|
+
</details>
|
|
390
|
+
|
|
391
|
+
---------------------------------------------------------------------------------------------
|
|
198
392
|
|
|
199
393
|
### Promise API
|
|
200
394
|
|
|
@@ -203,7 +397,7 @@ The `BackgroundGeolocation` Javascript API supports [Promises](https://developer
|
|
|
203
397
|
|
|
204
398
|
## :large_blue_diamond: [Demo Application](./example)
|
|
205
399
|
|
|
206
|
-
A fully-featured [Demo App](./example) is available in this repo
|
|
400
|
+
A fully-featured [Demo App](./example) is available in this repo, for both *React* and *Angular*. After first cloning this repo, follow the installation instructions in the [README](./example/README.md) there. This demo-app includes an advanced settings-screen allowing you to quickly experiment with all the different settings available for each platform.
|
|
207
401
|
|
|
208
402
|

|
|
209
403
|

|
|
@@ -217,28 +411,3 @@ A simple Node-based [web-application](https://github.com/transistorsoft/backgrou
|
|
|
217
411
|
|
|
218
412
|

|
|
219
413
|
|
|
220
|
-
# License
|
|
221
|
-
|
|
222
|
-
The MIT License (MIT)
|
|
223
|
-
|
|
224
|
-
Copyright (c) 2018 Chris Scott, Transistor Software
|
|
225
|
-
|
|
226
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
227
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
228
|
-
in the Software without restriction, including without limitation the rights
|
|
229
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
230
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
231
|
-
furnished to do so, subject to the following conditions:
|
|
232
|
-
|
|
233
|
-
The above copyright notice and this permission notice shall be included in all
|
|
234
|
-
copies or substantial portions of the Software.
|
|
235
|
-
|
|
236
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
237
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
238
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
239
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
240
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
241
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
242
|
-
SOFTWARE.
|
|
243
|
-
|
|
244
|
-
|
|
Binary file
|
package/android/libs/com/transistorsoft/tslocationmanager/3.1.36/tslocationmanager-3.1.36.aar.md5
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1ef9043277db3dbdad7e53bc47e3a28f
|
package/android/libs/com/transistorsoft/tslocationmanager/3.1.36/tslocationmanager-3.1.36.aar.sha1
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
527848fe28f8d7b3c5326b859e4b13d9991772f0
|
package/android/libs/com/transistorsoft/tslocationmanager/3.1.36/tslocationmanager-3.1.36.aar.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ae97533cc9a2fc5ce72f43d8ecec76cb5e5bafea8c154c09476a8e7097a04e4e
|
package/android/libs/com/transistorsoft/tslocationmanager/3.1.36/tslocationmanager-3.1.36.aar.sha512
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
e63120ac00354cc19789047f85c2f6f81c3e1b8f6b4f215fece5399913f5eca020505ee39c95e6e091c3d133ff8f297df3b979fa1e4387eac8170e38ae479089
|
package/android/libs/com/transistorsoft/tslocationmanager/3.1.36/tslocationmanager-3.1.36.pom.md5
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
5718f72f944aa64ecfeda4929d0ebfc2
|
package/android/libs/com/transistorsoft/tslocationmanager/3.1.36/tslocationmanager-3.1.36.pom.sha1
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
7396326d6d88e50ed209cf7b2e82f4a6c59358a8
|
package/android/libs/com/transistorsoft/tslocationmanager/3.1.36/tslocationmanager-3.1.36.pom.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
dd33101c63f2a22c5b1e8ae05fd604a24052fdb5d30ad9ef10782b548ba395c0
|
package/android/libs/com/transistorsoft/tslocationmanager/3.1.36/tslocationmanager-3.1.36.pom.sha512
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0a50c1b68e04046efd98de7fe29a49cebca7b20550cbd37367630453c73fc5ee17277f349fcb7e3b4a99366b7d63fcb64fa57328ae37fbe57d987cb5a59a35dc
|
|
@@ -3,13 +3,12 @@
|
|
|
3
3
|
<groupId>com.transistorsoft</groupId>
|
|
4
4
|
<artifactId>tslocationmanager</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<latest>3.1.
|
|
7
|
-
<release>3.1.
|
|
6
|
+
<latest>3.1.36</latest>
|
|
7
|
+
<release>3.1.36</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>3.1.
|
|
10
|
-
<version>3.1.
|
|
11
|
-
<version>3.1.34</version>
|
|
9
|
+
<version>3.1.35</version>
|
|
10
|
+
<version>3.1.36</version>
|
|
12
11
|
</versions>
|
|
13
|
-
<lastUpdated>
|
|
12
|
+
<lastUpdated>20220113151455</lastUpdated>
|
|
14
13
|
</versioning>
|
|
15
14
|
</metadata>
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
8c3c2c5d270dbccb2f7181ac57d32bce
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0f761c4a52629f0c173bca3bfac5aba1fb923808
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
999f1f27d8de570b12c727c38a5d446069f92eea4469f4b0fc8913526aff94ae
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
f48c61ee953a5f128130b5129a594d8baa86faad4d8d93ba0ed0f5845e4c8399b49c146c866b72d981a37a43db07b92353d467f2ef396097f1935571a3573dd2
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ab58bdc4aaf32b8779dd97bd5c0dedf5
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3b447d71ecdf8343435b0a9de28bcb97c35041c8
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
98a56a9e1710a3e37df0f9b895ed8cb5135525bc122b646f66249528660d9f8a
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
02b86e9604a3339981e5588f3c9de365f2a94efa62cab7caf5a917437b2344fce03fb4a1c043d91da0d85547d6909cc8b08bdaae7781e6bf1b2578e4c8ad910d
|
|
@@ -3,13 +3,12 @@
|
|
|
3
3
|
<groupId>com.transistorsoft</groupId>
|
|
4
4
|
<artifactId>tslocationmanager-reverse</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<latest>3.1.
|
|
7
|
-
<release>3.1.
|
|
6
|
+
<latest>3.1.36</latest>
|
|
7
|
+
<release>3.1.36</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>3.1.
|
|
10
|
-
<version>3.1.
|
|
11
|
-
<version>3.1.34</version>
|
|
9
|
+
<version>3.1.35</version>
|
|
10
|
+
<version>3.1.36</version>
|
|
12
11
|
</versions>
|
|
13
|
-
<lastUpdated>
|
|
12
|
+
<lastUpdated>20220113151455</lastUpdated>
|
|
14
13
|
</versioning>
|
|
15
14
|
</metadata>
|
package/android/src/main/java/com/transistorsoft/bggeo/capacitor/BackgroundGeolocationPlugin.java
CHANGED
|
@@ -96,7 +96,6 @@ public class BackgroundGeolocationPlugin extends Plugin {
|
|
|
96
96
|
if (activity != null) {
|
|
97
97
|
bgGeo.setActivity(activity);
|
|
98
98
|
}
|
|
99
|
-
registerEventListeners();
|
|
100
99
|
}
|
|
101
100
|
|
|
102
101
|
private void handlePlayServicesConnectError(Integer errorCode) {
|
|
@@ -132,7 +131,7 @@ public class BackgroundGeolocationPlugin extends Plugin {
|
|
|
132
131
|
return;
|
|
133
132
|
}
|
|
134
133
|
mReady = true;
|
|
135
|
-
|
|
134
|
+
registerEventListeners();
|
|
136
135
|
BackgroundGeolocation adapter = BackgroundGeolocation.getInstance(getContext());
|
|
137
136
|
|
|
138
137
|
if (config.isFirstBoot()) {
|
|
@@ -227,7 +226,12 @@ public class BackgroundGeolocationPlugin extends Plugin {
|
|
|
227
226
|
@PluginMethod()
|
|
228
227
|
public void stopSchedule(PluginCall call) {
|
|
229
228
|
getAdapter().stopSchedule();
|
|
230
|
-
|
|
229
|
+
TSConfig config = TSConfig.getInstance(getContext());
|
|
230
|
+
try {
|
|
231
|
+
call.resolve(JSObject.fromJSONObject(config.toJson()));
|
|
232
|
+
} catch (JSONException e) {
|
|
233
|
+
call.reject(e.getMessage());
|
|
234
|
+
}
|
|
231
235
|
}
|
|
232
236
|
|
|
233
237
|
private class StartGeofencesCallback implements TSCallback {
|
|
@@ -969,8 +973,6 @@ public class BackgroundGeolocationPlugin extends Plugin {
|
|
|
969
973
|
}
|
|
970
974
|
|
|
971
975
|
private void registerEventListeners() {
|
|
972
|
-
Log.d("TSLocationManager", "******************* register event listerns");
|
|
973
|
-
|
|
974
976
|
BackgroundGeolocation bgGeo = getAdapter();
|
|
975
977
|
// Events
|
|
976
978
|
bgGeo.onPlayServicesConnectError((new TSPlayServicesConnectErrorCallback() {
|
|
@@ -135,13 +135,16 @@ static NSString *const EVENT_AUTHORIZATION = @"authorization";
|
|
|
135
135
|
|
|
136
136
|
- (void)ready:(CAPPluginCall *) call {
|
|
137
137
|
TSLocationManager *locationManager = [TSLocationManager sharedInstance];
|
|
138
|
+
TSConfig *config = [TSConfig sharedInstance];
|
|
138
139
|
NSDictionary *params = [call getObject:@"options" defaultValue:@{}];
|
|
139
|
-
|
|
140
|
+
BOOL reset = (params[@"reset"]) ? [params[@"reset"] boolValue] : YES;
|
|
140
141
|
if (ready) {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
142
|
+
if (reset) {
|
|
143
|
+
[locationManager log:@"warn" message:@"#ready already called. Redirecting to #setConfig"];
|
|
144
|
+
[config updateWithDictionary:params];
|
|
145
|
+
} else {
|
|
146
|
+
[locationManager log:@"warn" message:@"#ready already called. Ignored Config since reset: false"];
|
|
147
|
+
}
|
|
145
148
|
[call resolve:[config toDictionary]];
|
|
146
149
|
return;
|
|
147
150
|
}
|
|
@@ -151,7 +154,6 @@ static NSString *const EVENT_AUTHORIZATION = @"authorization";
|
|
|
151
154
|
if (config.isFirstBoot) {
|
|
152
155
|
[config updateWithDictionary:params];
|
|
153
156
|
} else {
|
|
154
|
-
BOOL reset = (params[@"reset"]) ? [params[@"reset"] boolValue] : YES;
|
|
155
157
|
if (reset) {
|
|
156
158
|
[config reset:YES];
|
|
157
159
|
[config updateWithDictionary:params];
|
|
@@ -6,34 +6,34 @@
|
|
|
6
6
|
<array>
|
|
7
7
|
<dict>
|
|
8
8
|
<key>LibraryIdentifier</key>
|
|
9
|
-
<string>ios-
|
|
9
|
+
<string>ios-arm64_x86_64-maccatalyst</string>
|
|
10
10
|
<key>LibraryPath</key>
|
|
11
11
|
<string>TSLocationManager.framework</string>
|
|
12
12
|
<key>SupportedArchitectures</key>
|
|
13
13
|
<array>
|
|
14
14
|
<string>arm64</string>
|
|
15
|
-
<string>i386</string>
|
|
16
15
|
<string>x86_64</string>
|
|
17
16
|
</array>
|
|
18
17
|
<key>SupportedPlatform</key>
|
|
19
18
|
<string>ios</string>
|
|
20
19
|
<key>SupportedPlatformVariant</key>
|
|
21
|
-
<string>
|
|
20
|
+
<string>maccatalyst</string>
|
|
22
21
|
</dict>
|
|
23
22
|
<dict>
|
|
24
23
|
<key>LibraryIdentifier</key>
|
|
25
|
-
<string>ios-
|
|
24
|
+
<string>ios-arm64_i386_x86_64-simulator</string>
|
|
26
25
|
<key>LibraryPath</key>
|
|
27
26
|
<string>TSLocationManager.framework</string>
|
|
28
27
|
<key>SupportedArchitectures</key>
|
|
29
28
|
<array>
|
|
30
29
|
<string>arm64</string>
|
|
30
|
+
<string>i386</string>
|
|
31
31
|
<string>x86_64</string>
|
|
32
32
|
</array>
|
|
33
33
|
<key>SupportedPlatform</key>
|
|
34
34
|
<string>ios</string>
|
|
35
35
|
<key>SupportedPlatformVariant</key>
|
|
36
|
-
<string>
|
|
36
|
+
<string>simulator</string>
|
|
37
37
|
</dict>
|
|
38
38
|
<dict>
|
|
39
39
|
<key>LibraryIdentifier</key>
|
package/ios/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Info.plist
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<plist version="1.0">
|
|
4
4
|
<dict>
|
|
5
5
|
<key>BuildMachineOSBuild</key>
|
|
6
|
-
<string>
|
|
6
|
+
<string>21C52</string>
|
|
7
7
|
<key>CFBundleDevelopmentRegion</key>
|
|
8
8
|
<string>en</string>
|
|
9
9
|
<key>CFBundleExecutable</key>
|
|
@@ -17,29 +17,29 @@
|
|
|
17
17
|
<key>CFBundlePackageType</key>
|
|
18
18
|
<string>FMWK</string>
|
|
19
19
|
<key>CFBundleShortVersionString</key>
|
|
20
|
-
<string>4.
|
|
20
|
+
<string>4.1.1</string>
|
|
21
21
|
<key>CFBundleSupportedPlatforms</key>
|
|
22
22
|
<array>
|
|
23
23
|
<string>MacOSX</string>
|
|
24
24
|
</array>
|
|
25
25
|
<key>CFBundleVersion</key>
|
|
26
|
-
<string>
|
|
26
|
+
<string>383</string>
|
|
27
27
|
<key>DTCompiler</key>
|
|
28
28
|
<string>com.apple.compilers.llvm.clang.1_0</string>
|
|
29
29
|
<key>DTPlatformBuild</key>
|
|
30
|
-
<string>
|
|
30
|
+
<string>13C100</string>
|
|
31
31
|
<key>DTPlatformName</key>
|
|
32
32
|
<string>macosx</string>
|
|
33
33
|
<key>DTPlatformVersion</key>
|
|
34
|
-
<string>
|
|
34
|
+
<string>12.1</string>
|
|
35
35
|
<key>DTSDKBuild</key>
|
|
36
|
-
<string>
|
|
36
|
+
<string>21C46</string>
|
|
37
37
|
<key>DTSDKName</key>
|
|
38
|
-
<string>
|
|
38
|
+
<string>macosx12.1</string>
|
|
39
39
|
<key>DTXcode</key>
|
|
40
|
-
<string>
|
|
40
|
+
<string>1321</string>
|
|
41
41
|
<key>DTXcodeBuild</key>
|
|
42
|
-
<string>
|
|
42
|
+
<string>13C100</string>
|
|
43
43
|
<key>LSMinimumSystemVersion</key>
|
|
44
44
|
<string>10.15</string>
|
|
45
45
|
<key>UIDeviceFamily</key>
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@transistorsoft/capacitor-background-geolocation",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.4",
|
|
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",
|
package/CHANGELOG.md
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
## 4.4.0 — 2021-10-29
|
|
4
|
-
* [Added] New `Authorization.strategy "SAS"` (alternative to default `JWT`).
|
|
5
|
-
* [Changed] **Deprecated** `BackgroundGeolocation.removeListener`. All event-handlers now return a `react-native` `Subscription` instance containing a `.remove()` method. You will keep track of your own `subscription` instances and call `.remove()` upon them when you wish to remove an event listener. Eg:
|
|
6
|
-
|
|
7
|
-
```javascript
|
|
8
|
-
/// OLD
|
|
9
|
-
const onLocation = (location) => {
|
|
10
|
-
console.log('[onLocation');
|
|
11
|
-
}
|
|
12
|
-
BackgroundGeolocation.onLocation(onLocation);
|
|
13
|
-
...
|
|
14
|
-
// deprecated: removeListener
|
|
15
|
-
BackgroundGeolocation.removeListener('location', onLocation);
|
|
16
|
-
|
|
17
|
-
/// NEW: capture returned subscription instance.
|
|
18
|
-
const onLocationSubscription = BackgroundGeolocation.onLocation(onLocation);
|
|
19
|
-
...
|
|
20
|
-
// Removing an event-listener.
|
|
21
|
-
onLocationSubscription.remove();
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## 4.3.0 — 2021-09-13
|
|
25
|
-
|
|
26
|
-
* [Added][Android] Implement new Android 12 "reduced accuracy" mechanism `requestTemporaryFullAccuracy`.
|
|
27
|
-
* [Fixed][iOS] `Authorization.refreshPayload refreshToken` was not performing a String replace on the `{refreshToken}` template, instead over-writing the entire string. Eg: if provided with `'refresh_token': 'Bearer {refreshToken}`, `Bearer ` would be over-written and replaced with only the refresh-token.
|
|
28
|
-
* [Fixed][Android] Fixed crash reported by Huawei device, where verticalAccuracy returns NaN.
|
|
29
|
-
* [Added] Null-check identifier !== null in getGeofence, hasGeofence, removeGeofence
|
|
30
|
-
|
|
31
|
-
## [4.2.2] — 2021-08-23
|
|
32
|
-
* [Fixed][iOS] add config change listeners for `heartbeatInterval` and `preventSuspend` to dynamically update interval when changed with `setConfig`.
|
|
33
|
-
* [Fixed] Method `stopSchedule` was not implemented.
|
|
34
|
-
* [Fixed] Method `getGeofence` was not implemented.
|
|
35
|
-
|
|
36
|
-
## [4.2.1] — 2021-08-03
|
|
37
|
-
* [Changed][Android] Revert default `okHttpVersion` back to `3.12.13`. `4.x` requires `minSdkVersion 21` (*Android 5*).
|
|
38
|
-
|
|
39
|
-
## [4.2.0] — 2021-08-02
|
|
40
|
-
* [Changed][Android] Update Android default `okhttp` version to `4.9.1`.
|
|
41
|
-
* [Changed][Android] Update Android `eventbus` to `3.2.0`.
|
|
42
|
-
* [Changed][Android] Update Android `android-permissions` to import from *MavenCentral* instead of deprecated `jCenter`.
|
|
43
|
-
* [Changed][iOS] Re-compile iOS `TSLocationManager` using XCode 12.4 instead of `12.5.1`.
|
|
44
|
-
* [Fixed][Android] Fix an edge-case requesting motion permission. If `getCurrentPosition()` is executed before `.start()`, the Android SDK fails to request motion permission.
|
|
45
|
-
|
|
46
|
-
## [0.0.13] — 2021-06-11
|
|
47
|
-
* [Fixed][iOS] Reports 2 reports of iOS crash `NSInvalidArgumentException (TSLocation.m line 178)` with iOS 14
|
|
48
|
-
.x. Wrap JSON serialization in @try/@catch block. iOS JSON serialization docs state the supplied NSError err
|
|
49
|
-
or ref should report problems but it seems this is only "sometimes" now.
|
|
50
|
-
|
|
51
|
-
## [0.0.12] — 2021-06-08
|
|
52
|
-
- [Fixed] Implement `watchPosition`
|
|
53
|
-
|
|
54
|
-
## [0.0.11] — 2021-06-07
|
|
55
|
-
- [Fixed] iOS. Small change to TSLocationManager to ignore onResume events when .ready() not yet called. This was causing the plugin to start itself before ready is called. Could result in missed events.
|
|
56
|
-
|
|
57
|
-
## [0.0.10] — 2021-06-06
|
|
58
|
-
- Fixed iOS .podspec. Was still referencing TSBackgroundFetch.xcframework, which was removed from this repo now that capacitor-background-fetch exitsts.
|
|
59
|
-
|
|
60
|
-
## [0.0.9] — 2021-06-03
|
|
61
|
-
- Add `EVENT_` constants to `BackgroundGeolocation` class, eg: `BackgroundGeolocation.EVENT_LOCATION`.
|
|
62
|
-
- Fix Android example. Was not configuring background-fetch
|
|
63
|
-
|
|
64
|
-
## [0.0.8] — 2021-06-02
|
|
65
|
-
- Update Setup Instructions for `@transistorsoft/capacitor-background-fetch`.
|
|
66
|
-
|
|
67
|
-
## [0.0.4] — 2021-06-02
|
|
68
|
-
- Fix package.json to include ios/TSLocationManager.xcframework, android/libs when publishing to npm.
|
|
69
|
-
|
|
70
|
-
## [0.0.3] — 2021-05-31
|
|
71
|
-
- Fix Podfile name in package.json
|
|
72
|
-
|
|
73
|
-
## [0.0.2] — 2021-05-31
|
|
74
|
-
- Working beta version for both iOS / Android.
|
|
75
|
-
|
package/android/libs/com/transistorsoft/tslocationmanager/3.1.34/tslocationmanager-3.1.34.aar.md5
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
b29e51d5d171bd1836954c83f1657dd3
|
package/android/libs/com/transistorsoft/tslocationmanager/3.1.34/tslocationmanager-3.1.34.aar.sha1
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
738f4f927fde78332eeeb300ca1ac2ffbe6ddc26
|
package/android/libs/com/transistorsoft/tslocationmanager/3.1.34/tslocationmanager-3.1.34.aar.sha256
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
a3dd1567edc75edbf1feb8bc3682d5e02ded8605e49854ba3169f391bfc8d09f
|
package/android/libs/com/transistorsoft/tslocationmanager/3.1.34/tslocationmanager-3.1.34.aar.sha512
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
8d405b0427fd37b225dd4ca90633614371c994f4e1fa2ada7c453a067c08ebc9f7b41b1ebfe13f09bafacfa948385b3a27b6964e3936ecb4e822c184603afe58
|
package/android/libs/com/transistorsoft/tslocationmanager/3.1.34/tslocationmanager-3.1.34.pom.md5
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
20aafcf94ea9673cc521f064d46ade7b
|
package/android/libs/com/transistorsoft/tslocationmanager/3.1.34/tslocationmanager-3.1.34.pom.sha1
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
008bd7362c4446af36bef9e156b6c702a7e3b781
|
package/android/libs/com/transistorsoft/tslocationmanager/3.1.34/tslocationmanager-3.1.34.pom.sha256
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
5dc8c142d50c9e6c9986a1b3d374e9ed86427da743e4030d24c45c9c0c4c2fdf
|
package/android/libs/com/transistorsoft/tslocationmanager/3.1.34/tslocationmanager-3.1.34.pom.sha512
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
d8d251199fbd1fa61abcb4bf82b4e67624d82fc03fb34d114b10d99bcf4e5d443f65e38e16620a0020c566d844a51e600f4f5aa073c754a4ac2824210ba30498
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
c18e72e1b8a4706f760959f59a0d918c
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2e0c81175a1b44c05be8dbf607d65886d402f656
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
649f4c006732c5b2a04b6f90fba952377fa7281dda7374a20f5c67661439b45f
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
cfa5f14f859d2bd881867cc63b1968a7527b5a7e8082b551d3e3ad854783fcadefd9f2e21f2071201e1570347348cf4355e5d74c2049a1af4f21c1cca8c208f7
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
103b24060fe7ea19fe001a12852489b4
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
fbb3841eba4fdd2ffbb024d1a791abe6eb15533b
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
e6ebe3816a4c6ddb141b433b631e4e00c67adec24e46e45d0f06279cc0677e4f
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
f4c9c0482e0b822dcca71dcc32eaa5ee3a0caa93e0936e13e1ae38fb53f0b3137125b7cd90ff0469e53bb88caf961955972dc86a442dc2d937ae826a156df7f1
|