@capgo/background-geolocation 7.0.12 → 7.0.18

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.
@@ -1,7 +1,7 @@
1
1
  require 'json'
2
2
 
3
3
  package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4
-
4
+
5
5
  Pod::Spec.new do |s|
6
6
  s.name = 'CapgoBackgroundGeolocation'
7
7
  s.version = package['version']
@@ -10,7 +10,8 @@ Pod::Spec.new do |s|
10
10
  s.homepage = package['repository']['url']
11
11
  s.author = package['author']
12
12
  s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
13
- s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
14
- s.ios.deployment_target = '14.0'
13
+ s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
14
+ s.ios.deployment_target = '14.0'
15
15
  s.dependency 'Capacitor'
16
+ s.swift_version = '5.1'
16
17
  end
package/Package.swift ADDED
@@ -0,0 +1,28 @@
1
+ // swift-tools-version: 5.9
2
+ import PackageDescription
3
+
4
+ let package = Package(
5
+ name: "CapgoBackgroundGeolocation",
6
+ platforms: [.iOS(.v14)],
7
+ products: [
8
+ .library(
9
+ name: "CapgoBackgroundGeolocation",
10
+ targets: ["CapgoBackgroundGeolocationPlugin"])
11
+ ],
12
+ dependencies: [
13
+ .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "7.0.0")
14
+ ],
15
+ targets: [
16
+ .target(
17
+ name: "CapgoBackgroundGeolocationPlugin",
18
+ dependencies: [
19
+ .product(name: "Capacitor", package: "capacitor-swift-pm"),
20
+ .product(name: "Cordova", package: "capacitor-swift-pm")
21
+ ],
22
+ path: "ios/Sources/CapgoBackgroundGeolocationPlugin"),
23
+ .testTarget(
24
+ name: "CapgoBackgroundGeolocationPluginTests",
25
+ dependencies: ["CapgoBackgroundGeolocationPlugin"],
26
+ path: "ios/Tests/CapgoBackgroundGeolocationPluginTests")
27
+ ]
28
+ )
package/README.md CHANGED
@@ -6,12 +6,12 @@
6
6
  <h2><a href="https://capgo.app/consulting/?ref=plugin"> Missing a feature? We’ll build the plugin for you 💪</a></h2>
7
7
  </div>
8
8
 
9
- A Capacitor plugin that lets you receive geolocation updates even while the app is backgrounded.
9
+ A Capacitor plugin that lets you receive accurate geolocation updates even while the app is backgrounded.
10
10
  It has a web API to facilitate for a similar usage, but background geolocation is not supported in a regular browser, only in an app environment.
11
11
 
12
12
  ## This plugin's history
13
13
 
14
- Interestingly enough, this plugin has a lot of history. The initial solution from [Transistorsoft](https://github.com/transistorsoft) was a great piece of software, and I encourage using it if it fits your needs.
14
+ Interestingly enough, this plugin has a lot of history. The initial solution from [Transistorsoft](https://github.com/transistorsoft) was a great piece of software, and I ([HarelM](https://github.com/HarelM)) encourage using it if it fits your needs.
15
15
  I tried it and understood that it prioritizes battery life over accuracy, which wasn't the right fit for my hiking app.
16
16
  There was a very good fork maintained by **mauron85** specifically for that use case, and I was happy to help maintain it.
17
17
  But at some point, **mauron85** stopped responding to messages on GitHub, and no one could continue maintaining it.
@@ -28,6 +28,22 @@ That's how I ended up maintaining this one.
28
28
  I hope you'll enjoy it!
29
29
 
30
30
 
31
+ ## Plugin comparison
32
+
33
+ A short comparison between the three main background-geolocation plugins commonly used in Capacitor apps.
34
+
35
+ | Plugin | Accuracy | Background | HTTP Upload | Pricing |
36
+ |--------|----------|------------|-------------|---------|
37
+ | `@capacitor-community/background-geolocation` (Community) | Not accurate | Yes | No | Free |
38
+ | `@capgo/background-geolocation` (this plugin) | Accurate | Yes | No | Free |
39
+ | Transistorsoft (original) | Accurate | Yes | Yes — built-in HTTP uploader to your API | Paid |
40
+
41
+ Notes:
42
+ - The Community plugin is lightweight and continues to work in the background, but it is known to be less accurate than the options below.
43
+ - This Cap-go plugin aims to provide accurate location fixes and reliable background operation without requiring a paid license.
44
+ - Transistorsoft's plugin is a mature, accurate solution that also includes an HTTP uploader (it can send location updates to your API). It is a commercial product and requires a paid license for full use.
45
+
46
+
31
47
  ## Usage
32
48
 
33
49
  ```javascript
@@ -173,6 +189,7 @@ Configration specific to Android can be made in `strings.xml`:
173
189
 
174
190
  ```
175
191
 
192
+ ## API
176
193
 
177
194
  <docgen-index>
178
195