@capgo/background-geolocation 7.2.1 → 7.2.3
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
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
<a href="https://capgo.app/"><img src='https://raw.githubusercontent.com/Cap-go/capgo/main/assets/capgo_banner.png' alt='Capgo - Instant updates for capacitor'/></a>
|
|
3
3
|
|
|
4
4
|
<div align="center">
|
|
5
|
-
<h2><a href="https://capgo.app/?ref=
|
|
6
|
-
<h2><a href="https://capgo.app/consulting/?ref=
|
|
5
|
+
<h2><a href="https://capgo.app/?ref=plugin_background_geolocation"> ➡️ Get Instant updates for your App with Capgo</a></h2>
|
|
6
|
+
<h2><a href="https://capgo.app/consulting/?ref=plugin_background_geolocation"> Missing a feature? We’ll build the plugin for you 💪</a></h2>
|
|
7
7
|
</div>
|
|
8
8
|
|
|
9
9
|
A Capacitor plugin that lets you receive accurate geolocation updates even while the app is backgrounded.
|
package/android/src/main/java/com/capgo/capacitor_background_geolocation/BackgroundGeolocation.java
CHANGED
|
@@ -42,7 +42,7 @@ import org.json.JSONObject;
|
|
|
42
42
|
)
|
|
43
43
|
public class BackgroundGeolocation extends Plugin {
|
|
44
44
|
|
|
45
|
-
private final String
|
|
45
|
+
private final String pluginVersion = "";
|
|
46
46
|
|
|
47
47
|
private CompletableFuture<BackgroundGeolocationService.LocalBinder> serviceConnectionFuture;
|
|
48
48
|
private CompletableFuture<Void> locationPermissionFuture;
|
|
@@ -353,7 +353,7 @@ public class BackgroundGeolocation extends Plugin {
|
|
|
353
353
|
public void getPluginVersion(final PluginCall call) {
|
|
354
354
|
try {
|
|
355
355
|
final JSObject ret = new JSObject();
|
|
356
|
-
ret.put("version", this.
|
|
356
|
+
ret.put("version", this.pluginVersion);
|
|
357
357
|
call.resolve(ret);
|
|
358
358
|
} catch (final Exception e) {
|
|
359
359
|
call.reject("Could not get plugin version", e);
|
package/ios/Sources/CapgoBackgroundGeolocationPlugin/CapgoCapacitorBackgroundGeolocationPlugin.swift
CHANGED
|
@@ -36,7 +36,7 @@ func formatLocation(_ location: CLLocation) -> PluginCallResultData {
|
|
|
36
36
|
|
|
37
37
|
@objc(BackgroundGeolocation)
|
|
38
38
|
public class BackgroundGeolocation: CAPPlugin, CLLocationManagerDelegate, CAPBridgedPlugin {
|
|
39
|
-
private let
|
|
39
|
+
private let pluginVersion: String = "7.2.3"
|
|
40
40
|
public let identifier = "BackgroundGeolocationPlugin"
|
|
41
41
|
public let jsName = "BackgroundGeolocation"
|
|
42
42
|
public let pluginMethods: [CAPPluginMethod] = [
|
|
@@ -387,7 +387,7 @@ public class BackgroundGeolocation: CAPPlugin, CLLocationManagerDelegate, CAPBri
|
|
|
387
387
|
}
|
|
388
388
|
|
|
389
389
|
@objc func getPluginVersion(_ call: CAPPluginCall) {
|
|
390
|
-
call.resolve(["version": self.
|
|
390
|
+
call.resolve(["version": self.pluginVersion])
|
|
391
391
|
}
|
|
392
392
|
|
|
393
393
|
}
|
package/package.json
CHANGED