@capgo/background-geolocation 7.2.4 → 7.2.6
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/README.md
CHANGED
|
@@ -149,7 +149,7 @@ On Android 13+, the app needs the `POST_NOTIFICATIONS` runtime permission to sho
|
|
|
149
149
|
|
|
150
150
|
If your app forwards location updates to a server in real time, be aware that after 5 minutes in the background Android will throttle HTTP requests initiated from the WebView. The solution is to use a native HTTP plugin such as [CapacitorHttp](https://capacitorjs.com/docs/apis/http). See https://github.com/capacitor-community/background-geolocation/issues/14.
|
|
151
151
|
|
|
152
|
-
|
|
152
|
+
Configuration specific to Android can be made in `strings.xml`:
|
|
153
153
|
```xml
|
|
154
154
|
<resources>
|
|
155
155
|
<!--
|
package/ios/Sources/CapgoBackgroundGeolocationPlugin/CapgoCapacitorBackgroundGeolocationPlugin.swift
CHANGED
|
@@ -36,11 +36,11 @@ func formatLocation(_ location: CLLocation) -> PluginCallResultData {
|
|
|
36
36
|
|
|
37
37
|
@objc(BackgroundGeolocation)
|
|
38
38
|
public class BackgroundGeolocation: CAPPlugin, CLLocationManagerDelegate, CAPBridgedPlugin {
|
|
39
|
-
private let pluginVersion: String = "7.2.
|
|
39
|
+
private let pluginVersion: String = "7.2.6"
|
|
40
40
|
public let identifier = "BackgroundGeolocationPlugin"
|
|
41
41
|
public let jsName = "BackgroundGeolocation"
|
|
42
42
|
public let pluginMethods: [CAPPluginMethod] = [
|
|
43
|
-
CAPPluginMethod(name: "start", returnType:
|
|
43
|
+
CAPPluginMethod(name: "start", returnType: CAPPluginReturnCallback),
|
|
44
44
|
CAPPluginMethod(name: "stop", returnType: CAPPluginReturnPromise),
|
|
45
45
|
CAPPluginMethod(name: "openSettings", returnType: CAPPluginReturnPromise),
|
|
46
46
|
CAPPluginMethod(name: "setPlannedRoute", returnType: CAPPluginReturnPromise),
|
package/package.json
CHANGED