@transistorsoft/capacitor-background-geolocation 9.0.2 → 9.1.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.
Files changed (140) hide show
  1. package/Package.swift +2 -4
  2. package/README.md +35 -271
  3. package/TransistorsoftCapacitorBackgroundGeolocation.podspec +1 -2
  4. package/android/build.gradle +1 -1
  5. package/package.json +1 -2
  6. package/ios/Frameworks/TSLocationManager.xcframework/Info.plist +0 -61
  7. package/ios/Frameworks/TSLocationManager.xcframework/_CodeSignature/CodeDirectory +0 -0
  8. package/ios/Frameworks/TSLocationManager.xcframework/_CodeSignature/CodeRequirements +0 -0
  9. package/ios/Frameworks/TSLocationManager.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
  10. package/ios/Frameworks/TSLocationManager.xcframework/_CodeSignature/CodeResources +0 -2033
  11. package/ios/Frameworks/TSLocationManager.xcframework/_CodeSignature/CodeSignature +0 -0
  12. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/AtomicBoolean.h +0 -18
  13. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/ConfigModule.h +0 -21
  14. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/HttpRequest.h +0 -21
  15. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/HttpResponse.h +0 -29
  16. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/LocationManager.h +0 -55
  17. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/LogQuery.h +0 -13
  18. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/SOMotionDetector.h +0 -141
  19. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/SQLQuery.h +0 -34
  20. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSActivityChangeEvent.h +0 -16
  21. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSAuthorization.h +0 -38
  22. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSAuthorizationEvent.h +0 -18
  23. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSCallback.h +0 -18
  24. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSConfig.h +0 -310
  25. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSConnectivityChangeEvent.h +0 -17
  26. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSCurrentPositionRequest.h +0 -43
  27. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSDeviceInfo.h +0 -24
  28. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSEnabledChangeEvent.h +0 -15
  29. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSGeofence.h +0 -54
  30. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSGeofenceEvent.h +0 -64
  31. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSGeofenceManager.h +0 -54
  32. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSGeofencesChangeEvent.h +0 -17
  33. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSHeartbeatEvent.h +0 -18
  34. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSHttpEvent.h +0 -19
  35. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSHttpService.h +0 -58
  36. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSLocation.h +0 -105
  37. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSLocationManager.h +0 -315
  38. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSPowerSaveChangeEvent.h +0 -14
  39. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSProviderChangeEvent.h +0 -20
  40. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSReachability.h +0 -106
  41. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSSchedule.h +0 -40
  42. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSScheduleEvent.h +0 -18
  43. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSWatchPositionRequest.h +0 -41
  44. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TransistorAuthorizationToken.h +0 -31
  45. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Info.plist +0 -0
  46. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Miniball/Miniball.hpp +0 -525
  47. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Modules/module.modulemap +0 -6
  48. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/PrivacyInfo.xcprivacy +0 -36
  49. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/TSLocationManager +0 -0
  50. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeDirectory +0 -0
  51. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeRequirements +0 -0
  52. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeRequirements-1 +0 -0
  53. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeResources +0 -642
  54. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeSignature +0 -0
  55. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/AtomicBoolean.h +0 -18
  56. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/ConfigModule.h +0 -21
  57. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/HttpRequest.h +0 -21
  58. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/HttpResponse.h +0 -29
  59. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/LocationManager.h +0 -55
  60. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/LogQuery.h +0 -13
  61. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/SOMotionDetector.h +0 -141
  62. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/SQLQuery.h +0 -34
  63. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSActivityChangeEvent.h +0 -16
  64. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSAuthorization.h +0 -38
  65. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSAuthorizationEvent.h +0 -18
  66. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSCallback.h +0 -18
  67. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSConfig.h +0 -310
  68. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSConnectivityChangeEvent.h +0 -17
  69. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSCurrentPositionRequest.h +0 -43
  70. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSDeviceInfo.h +0 -24
  71. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSEnabledChangeEvent.h +0 -15
  72. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSGeofence.h +0 -54
  73. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSGeofenceEvent.h +0 -64
  74. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSGeofenceManager.h +0 -54
  75. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSGeofencesChangeEvent.h +0 -17
  76. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSHeartbeatEvent.h +0 -18
  77. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSHttpEvent.h +0 -19
  78. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSHttpService.h +0 -58
  79. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSLocation.h +0 -105
  80. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSLocationManager.h +0 -315
  81. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSPowerSaveChangeEvent.h +0 -14
  82. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSProviderChangeEvent.h +0 -20
  83. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSReachability.h +0 -106
  84. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSSchedule.h +0 -40
  85. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSScheduleEvent.h +0 -18
  86. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSWatchPositionRequest.h +0 -41
  87. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TransistorAuthorizationToken.h +0 -31
  88. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Modules/module.modulemap +0 -6
  89. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Resources/Info.plist +0 -50
  90. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Resources/Miniball/Miniball.hpp +0 -525
  91. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Resources/PrivacyInfo.xcprivacy +0 -36
  92. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/TSLocationManager +0 -0
  93. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeDirectory +0 -0
  94. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeRequirements +0 -0
  95. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeRequirements-1 +0 -0
  96. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeResources +0 -536
  97. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeSignature +0 -0
  98. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/AtomicBoolean.h +0 -18
  99. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/ConfigModule.h +0 -21
  100. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/HttpRequest.h +0 -21
  101. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/HttpResponse.h +0 -29
  102. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/LocationManager.h +0 -55
  103. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/LogQuery.h +0 -13
  104. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/SOMotionDetector.h +0 -141
  105. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/SQLQuery.h +0 -34
  106. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSActivityChangeEvent.h +0 -16
  107. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSAuthorization.h +0 -38
  108. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSAuthorizationEvent.h +0 -18
  109. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSCallback.h +0 -18
  110. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSConfig.h +0 -310
  111. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSConnectivityChangeEvent.h +0 -17
  112. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSCurrentPositionRequest.h +0 -43
  113. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSDeviceInfo.h +0 -24
  114. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSEnabledChangeEvent.h +0 -15
  115. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSGeofence.h +0 -54
  116. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSGeofenceEvent.h +0 -64
  117. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSGeofenceManager.h +0 -54
  118. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSGeofencesChangeEvent.h +0 -17
  119. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSHeartbeatEvent.h +0 -18
  120. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSHttpEvent.h +0 -19
  121. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSHttpService.h +0 -58
  122. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSLocation.h +0 -105
  123. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSLocationManager.h +0 -315
  124. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSPowerSaveChangeEvent.h +0 -14
  125. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSProviderChangeEvent.h +0 -20
  126. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSReachability.h +0 -106
  127. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSSchedule.h +0 -40
  128. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSScheduleEvent.h +0 -18
  129. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSWatchPositionRequest.h +0 -41
  130. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TransistorAuthorizationToken.h +0 -31
  131. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Info.plist +0 -0
  132. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Miniball/Miniball.hpp +0 -525
  133. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Modules/module.modulemap +0 -6
  134. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/PrivacyInfo.xcprivacy +0 -36
  135. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/TSLocationManager +0 -0
  136. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeDirectory +0 -0
  137. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeRequirements +0 -0
  138. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeRequirements-1 +0 -0
  139. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeResources +0 -642
  140. package/ios/Frameworks/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeSignature +0 -0
package/Package.swift CHANGED
@@ -12,8 +12,7 @@ let package = Package(
12
12
  ],
13
13
  dependencies: [
14
14
  .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "8.0.0"),
15
- .package(url: "https://github.com/CocoaLumberjack/CocoaLumberjack.git", from: "3.8.5"),
16
- .package(url: "https://github.com/transistorsoft/native-background-geolocation.git", from: "4.0.10"),
15
+ .package(url: "https://github.com/transistorsoft/native-background-geolocation.git", from: "4.1.0"),
17
16
  .package(url: "https://github.com/transistorsoft/transistor-background-fetch.git", from: "4.0.5")
18
17
  ],
19
18
  targets: [
@@ -23,8 +22,7 @@ let package = Package(
23
22
  .product(name: "Capacitor", package: "capacitor-swift-pm"),
24
23
  .product(name: "Cordova", package: "capacitor-swift-pm"),
25
24
  .product(name: "BackgroundGeolocation", package: "native-background-geolocation"),
26
- .product(name: "TSBackgroundFetch", package: "transistor-background-fetch"),
27
- .product(name: "CocoaLumberjackSwift", package: "CocoaLumberjack")
25
+ .product(name: "TSBackgroundFetch", package: "transistor-background-fetch")
28
26
  ],
29
27
  path: "ios/Sources/BackgroundGeolocationPlugin",
30
28
  resources: [
package/README.md CHANGED
@@ -1,286 +1,43 @@
1
- Background Geolocation for Capacitor · [![npm](https://img.shields.io/npm/dm/@transistorsoft/capacitor-background-geolocation.svg)]() [![npm](https://img.shields.io/npm/v/@transistorsoft/capacitor-background-geolocation.svg)]()
2
- ============================================================================
1
+ <p align="center">
2
+ <img src="https://raw.githubusercontent.com/transistorsoft/assets/master/images/logos/transistor/transistor-logo-panel-ts.svg" alt="Background Geolocation for Capacitor" width="635">
3
+ </p>
3
4
 
4
- [![](https://dl.dropboxusercontent.com/s/nm4s5ltlug63vv8/logo-150-print.png?dl=1)](https://www.transistorsoft.com)
5
+ # Background Geolocation for Capacitor
5
6
 
6
- -------------------------------------------------------------------------------
7
+ [![npm](https://img.shields.io/npm/dm/@transistorsoft/capacitor-background-geolocation.svg)]() [![npm](https://img.shields.io/npm/v/@transistorsoft/capacitor-background-geolocation.svg)]()
7
8
 
8
- The *most* sophisticated background **location-tracking & geofencing** module with battery-conscious motion-detection intelligence for **iOS** and **Android**.
9
+ The most sophisticated background **location-tracking & geofencing** SDK with battery-conscious motion-detection intelligence for **iOS** and **Android**.
9
10
 
10
- The plugin's [Philosophy of Operation](../../wiki/Philosophy-of-Operation) is to use **motion-detection** APIs (accelerometer, gyroscope and magnetometer) to detect when the device is *moving* and *stationary*.
11
+ The SDK uses **motion-detection** APIs (accelerometer, gyroscope, magnetometer) to detect when the device is *moving* or *stationary*:
11
12
 
12
- - When the device is detected to be **moving**, the plugin automatically starts recording locations according to the configured `distanceFilter` (metres).
13
-
14
- - When the device is detected to be **stationary**, the plugin automatically turns off location-services to conserve energy.
15
-
16
- Also available for [Flutter](https://github.com/transistorsoft/flutter_background_geolocation), [Cordova](https://github.com/transistorsoft/cordova-background-geolocation-lt), and [React Native](https://github.com/transistorsoft/react-native-background-geolocation).
17
-
18
- ----------------------------------------------------------------------------
19
-
20
- The **[Android module](http://www.transistorsoft.com/shop/products/capacitor-background-geolocation)** requires [purchasing a license](http://www.transistorsoft.com/shop/products/capacitor-background-geolocation). However, it *will* work for **DEBUG** builds — try before you buy.
21
-
22
- ----------------------------------------------------------------------------
23
-
24
- [![Google Play](https://dl.dropboxusercontent.com/s/80rf906x0fheb26/google-play-icon.png?dl=1)](https://play.google.com/store/apps/details?id=com.transistorsoft.backgroundgeolocation.react)
25
-
26
- ![Home](https://dl.dropboxusercontent.com/s/wa43w1n3xhkjn0i/home-framed-350.png?dl=1)
27
- ![Settings](https://dl.dropboxusercontent.com/s/8oad228siog49kt/settings-framed-350.png?dl=1)
13
+ - **Moving** location recording starts automatically at the configured `distanceFilter` (metres)
14
+ - **Stationary** — location services turn off automatically to conserve battery
28
15
 
29
16
  > [!IMPORTANT]
30
- > This plugin requires **Capacitor 5** or higher. For Capacitor 4, use the `4.x` version of the plugin.
31
-
32
- # Contents
33
- - ### 😫 [Help!](../../wiki/Help)
34
- - ### :books: [API Documentation](https://transistorsoft.github.io/capacitor-background-geolocation/latest)
35
- - ### [Installing the Plugin](#large_blue_diamond-installing-the-plugin)
36
- - ### [Setup Guides](#large_blue_diamond-setup-guides)
37
- - ### [Configure your License](#large_blue_diamond-configure-your-license)
38
- - ### [Using the Plugin](#large_blue_diamond-using-the-plugin)
39
- - ### [Example](#large_blue_diamond-example)
40
- - ### [Debugging](../../wiki/Debugging)
41
- - ### [Example Apps](#large_blue_diamond-example-apps)
42
- - ### [Testing Server](#large_blue_diamond-simple-testing-server)
43
- - ### [Privacy Policy](help/PRIVACY_POLICY.md)
44
-
45
- ---
46
-
47
- ## :large_blue_diamond: Installing the Plugin
48
-
49
- > [!CAUTION]
50
- > This is the new v9 version. For previous version, see [`v8.x`](https://github.com/transistorsoft/capacitor-background-geolocation/tree/8.0.1). __`v8.x`__ license keys do not work with __`v9`__. Login to the customer dashboard to generate a __`v9`__ key. See the [Migration Guide](help/MIGRATION-GUIDE-9.0.0.md) for details.
51
-
52
- ### With `yarn`
53
-
54
- ```bash
55
- yarn add @transistorsoft/capacitor-background-geolocation
56
- npx cap sync
57
- ```
58
-
59
- ### With `npm`
60
-
61
- ```bash
62
- npm install @transistorsoft/capacitor-background-geolocation --save
63
- npx cap sync
64
- ```
65
-
66
- ### Optional: Background Fetch
67
-
68
- [`@transistorsoft/capacitor-background-fetch`](https://github.com/transistorsoft/capacitor-background-fetch) is a companion plugin that provides a periodic background callback — up to once every 15 minutes — even while your app is suspended. It is not required by the geolocation plugin but is a useful add-on for keeping data in sync.
69
-
70
- ```bash
71
- yarn add @transistorsoft/capacitor-background-fetch
72
- npx cap sync
73
- ```
74
-
75
- ---
76
-
77
- ## :large_blue_diamond: Setup Guides
78
-
79
- ### iOS
80
- - [Required iOS Setup](help/INSTALL-IOS.md)
81
-
82
- ### Android
83
- - [Required Android Setup](help/INSTALL-ANDROID.md)
84
-
85
- ---
86
-
87
- ## :large_blue_diamond: Configure your License
88
-
89
- > [!NOTE]
90
- > If you have **not** [purchased a license](https://www.transistorsoft.com/shop/products/capacitor-background-geolocation#plans), **skip this step** — the plugin is fully functional in *DEBUG* builds so you can evaluate it first.
91
-
92
- Your license is a **JWT** issued by the [Customer Dashboard](https://www.transistorsoft.com/shop/customers). It encodes all the features (*entitlements*) your subscription includes — there is only **one key** regardless of which add-ons you have.
93
-
94
- Add your license key to **`android/app/src/main/AndroidManifest.xml`**:
95
-
96
- ```diff
97
- <manifest xmlns:android="http://schemas.android.com/apk/res/android">
98
- <application
99
- android:name=".MainApplication"
100
- android:label="@string/app_name"
101
- android:icon="@mipmap/ic_launcher"
102
- android:theme="@style/AppTheme">
103
-
104
- <!-- capacitor-background-geolocation licence -->
105
- + <meta-data android:name="com.transistorsoft.locationmanager.license" android:value="YOUR_LICENSE_KEY_HERE" />
106
- .
107
- .
108
- .
109
- </application>
110
- </manifest>
111
- ```
17
+ > This is **`v9`**. For the previous version see [`v8.x`](https://github.com/transistorsoft/capacitor-background-geolocation/tree/8.0.1). **`v8.x`** license keys do **not** work with **`v9`** — log in to the [Customer Dashboard](https://transistorsoft.com) to generate a **`v9`** key. See the [Migration Guide](help/MIGRATION-GUIDE-9.0.0.md) for details.
112
18
 
113
19
  ---
114
20
 
115
- ## :large_blue_diamond: Using the Plugin
21
+ ## :books: Documentation
116
22
 
117
- ```javascript
118
- import BackgroundGeolocation from "@transistorsoft/capacitor-background-geolocation";
119
- ```
23
+ ### <img src="https://raw.githubusercontent.com/transistorsoft/react-native-background-geolocation/master/assets/images/platforms/capacitor.svg" width="20" height="20"> Capacitor
24
+ - [Setup](https://docs.transistorsoft.com/typescript/setup/?tab=capacitor)
25
+ - [API Reference](https://docs.transistorsoft.com/typescript/BackgroundGeolocation/)
26
+ - [Example](https://docs.transistorsoft.com/typescript/examples/?tab=capacitor)
120
27
 
121
28
  ---
122
29
 
123
- ## :large_blue_diamond: Example
124
-
125
- There are three main steps to using `BackgroundGeolocation`:
126
- 1. Wire up event-listeners.
127
- 2. `#ready` the plugin.
128
- 3. `#start` the plugin.
129
-
130
- > [!WARNING]
131
- > Do not call any API method that requires location-services (e.g. `#getCurrentPosition`, `#watchPosition`, `#start`) until the `#ready` promise resolves.
132
-
133
- ```javascript
134
- // NO! .ready() has not yet resolved.
135
- BackgroundGeolocation.getCurrentPosition(options);
136
- BackgroundGeolocation.start();
137
-
138
- BackgroundGeolocation.ready(config).then((state) => {
139
- // YES — .ready() has resolved.
140
- BackgroundGeolocation.getCurrentPosition(options);
141
- BackgroundGeolocation.start();
142
- });
143
-
144
- // NO! .ready() has not yet resolved.
145
- BackgroundGeolocation.getCurrentPosition(options);
146
- BackgroundGeolocation.start();
147
- ```
148
-
149
- ---------------------------------------------------------------------------------------------
150
-
151
- ### Example — *React*
152
-
153
- <img alt="React" width="50px" src="https://hackr.io/tutorials/react/logo-react.svg?ver=1610114789" />
154
-
155
- <details>
156
- <summary>View Source</summary>
157
-
158
- ```typescript
159
- import {
160
- IonContent,
161
- IonHeader,
162
- IonPage,
163
- IonTitle,
164
- IonToolbar,
165
- IonButtons,
166
- IonToggle,
167
- IonItemDivider,
168
- IonLabel
169
- } from '@ionic/react';
170
-
171
- import React from "react";
172
-
173
- import BackgroundGeolocation, {
174
- Subscription
175
- } from "@transistorsoft/capacitor-background-geolocation";
176
-
177
- const HelloWorld: React.FC = () => {
178
- const [ready, setReady] = React.useState(false);
179
- const [enabled, setEnabled] = React.useState(false);
180
- const [events, setEvents] = React.useState<any[]>([]);
30
+ ## :key: Licensing
181
31
 
182
- const addEvent = (name: string, event: any) => {
183
- setEvents(previous => [...previous, {
184
- name: name,
185
- json: JSON.stringify(event, null, 2)
186
- }]);
187
- }
32
+ > [!TIP]
33
+ > The SDK is **fully functional in `DEBUG` builds** — no license required. Try before you buy.
188
34
 
189
- React.useEffect(() => {
190
- /// 1. Subscribe to events.
191
- const onLocation: Subscription = BackgroundGeolocation.onLocation((location) => {
192
- addEvent('onLocation', location);
193
- });
194
-
195
- const onMotionChange: Subscription = BackgroundGeolocation.onMotionChange((event) => {
196
- addEvent('onMotionChange', event);
197
- });
198
-
199
- const onActivityChange: Subscription = BackgroundGeolocation.onActivityChange((event) => {
200
- addEvent('onActivityChange', event);
201
- });
202
-
203
- const onProviderChange: Subscription = BackgroundGeolocation.onProviderChange((event) => {
204
- addEvent('onProviderChange', event);
205
- });
206
-
207
- /// 2. Ready the plugin.
208
- BackgroundGeolocation.ready({
209
- // Geolocation
210
- desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,
211
- distanceFilter: 10,
212
- // Activity Recognition
213
- stopTimeout: 5,
214
- // Application
215
- debug: true, // <-- enable to hear life-cycle sounds
216
- logLevel: BackgroundGeolocation.LOG_LEVEL_VERBOSE,
217
- stopOnTerminate: false, // <-- continue tracking after the app is closed
218
- startOnBoot: true, // <-- start tracking when the device boots
219
- }).then((state) => {
220
- setReady(true);
221
- setEnabled(state.enabled);
222
- addEvent('State', state);
223
- });
224
-
225
- return () => {
226
- // Remove subscriptions when the component unmounts (important during
227
- // live-reload in development to prevent listener accumulation).
228
- onLocation.remove();
229
- onMotionChange.remove();
230
- onActivityChange.remove();
231
- onProviderChange.remove();
232
- };
233
- }, []);
234
-
235
- /// 3. Start / stop BackgroundGeolocation.
236
- React.useEffect(() => {
237
- if (!ready) { return; }
238
-
239
- if (enabled) {
240
- BackgroundGeolocation.start();
241
- } else {
242
- BackgroundGeolocation.stop();
243
- setEvents([]);
244
- }
245
- }, [enabled]);
246
-
247
- return (
248
- <IonPage>
249
- <IonHeader>
250
- <IonToolbar>
251
- <IonButtons slot="end">
252
- <IonLabel>Toggle to <code>{enabled ? 'stop()' : 'start()'}</code> &mdash;&gt;</IonLabel>
253
- <IonToggle checked={enabled} onIonChange={e => setEnabled(e.detail.checked)} />
254
- </IonButtons>
255
- </IonToolbar>
256
- </IonHeader>
257
- <IonContent fullscreen>
258
- <div style={{ padding: 10 }}>
259
- {events.slice().reverse().map((event, i) => (
260
- <div key={i}>
261
- <p><strong>{event.name}</strong></p>
262
- <small><pre><code>{event.json}</code></pre></small>
263
- <IonItemDivider />
264
- </div>
265
- ))}
266
- </div>
267
- </IonContent>
268
- </IonPage>
269
- );
270
- }
271
- ```
272
-
273
- </details>
274
-
275
- ---------------------------------------------------------------------------------------------
276
-
277
- ### Promise API
278
-
279
- The `BackgroundGeolocation` API supports [Promises](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) for nearly every method. The exceptions are **`#watchPosition`** and the event-listener methods (`onLocation`, `onProviderChange`, etc.). See the [API Documentation](https://transistorsoft.github.io/capacitor-background-geolocation/latest) for full details.
35
+ A license is required only for **`RELEASE` builds** on Android.
36
+ [Purchase a license](https://shop.transistorsoft.com/products/capacitor-background-geolocation)
280
37
 
281
38
  ---
282
39
 
283
- ## :large_blue_diamond: Example Apps
40
+ ## :open_file_folder: Example Apps
284
41
 
285
42
  Two example apps are included in the [`example/`](./example) directory:
286
43
 
@@ -291,15 +48,22 @@ Two example apps are included in the [`example/`](./example) directory:
291
48
 
292
49
  See the [example README](./example/README.md) for setup instructions.
293
50
 
294
- ![Home](https://dl.dropboxusercontent.com/s/wa43w1n3xhkjn0i/home-framed-350.png?dl=1)
295
- ![Settings](https://dl.dropboxusercontent.com/s/8oad228siog49kt/settings-framed-350.png?dl=1)
296
-
297
51
  ---
298
52
 
299
- ## :large_blue_diamond: [Simple Testing Server](https://github.com/transistorsoft/background-geolocation-console)
53
+ ## 📦 SDK availability
54
+
55
+ <img src="https://raw.githubusercontent.com/transistorsoft/assets/master/images/logos/transistor/transistor-logo-panel-all.svg" width="300">
300
56
 
301
- A simple Node-based [web application](https://github.com/transistorsoft/background-geolocation-console) with a SQLite database is available for field-testing and performance analysis. If you're familiar with Node you can have it running in about **one minute**.
57
+ | Platform | Package |
58
+ |---|---|
59
+ | <img src="https://raw.githubusercontent.com/transistorsoft/react-native-background-geolocation/master/assets/images/platforms/capacitor.svg" width="16" height="16"> Capacitor | **This repo** |
60
+ | <img src="https://raw.githubusercontent.com/transistorsoft/react-native-background-geolocation/master/assets/images/platforms/react-native.svg" width="16" height="16"> [React Native](https://github.com/transistorsoft/react-native-background-geolocation) | `react-native-background-geolocation` |
61
+ | <img src="https://raw.githubusercontent.com/transistorsoft/react-native-background-geolocation/master/assets/images/platforms/expo.svg" width="16" height="16"> [Expo](https://github.com/transistorsoft/react-native-background-geolocation) | `react-native-background-geolocation` |
62
+ | <img src="https://raw.githubusercontent.com/transistorsoft/react-native-background-geolocation/master/assets/images/platforms/flutter.svg" width="16" height="16"> [Flutter](https://github.com/transistorsoft/flutter_background_geolocation) | `flutter_background_geolocation` |
63
+ | <img src="https://raw.githubusercontent.com/transistorsoft/react-native-background-geolocation/master/assets/images/platforms/cordova.svg" width="16" height="16"> [Cordova](https://github.com/transistorsoft/cordova-background-geolocation-lt) | `cordova-background-geolocation-lt` |
64
+ | <img src="https://raw.githubusercontent.com/transistorsoft/react-native-background-geolocation/master/assets/images/platforms/swift.svg" width="16" height="16"> [Swift / iOS](https://github.com/transistorsoft/background-geolocation) | `background-geolocation` |
65
+ | <img src="https://raw.githubusercontent.com/transistorsoft/react-native-background-geolocation/master/assets/images/platforms/kotlin.svg" width="16" height="16"> [Kotlin / Android](https://github.com/transistorsoft/background-geolocation) | `background-geolocation` |
302
66
 
303
- ![](https://dl.dropboxusercontent.com/s/px5rzz7wybkv8fs/background-geolocation-console-map.png?dl=1)
67
+ ---
304
68
 
305
- ![](https://dl.dropboxusercontent.com/s/tiy5b2oivt0np2y/background-geolocation-console-grid.png?dl=1)
69
+ MIT © [Transistor Software](https://www.transistorsoft.com)
@@ -13,8 +13,7 @@ Pod::Spec.new do |s|
13
13
  s.source_files = 'ios/Sources/BackgroundGeolocationPlugin/**/*.{swift,h,m,c,cc,mm,cpp}'
14
14
  s.ios.deployment_target = '13.0'
15
15
  s.dependency 'Capacitor'
16
- s.dependency 'CocoaLumberjack', '~> 3.8.5'
17
- s.dependency 'TSLocationManager', '~> 4.0.10'
16
+ s.dependency 'TSLocationManager', '~> 4.1.0'
18
17
  s.libraries = 'sqlite3', 'z', 'stdc++'
19
18
  s.resource_bundles = {
20
19
  'TSLocationManagerPrivacy' => ['ios/Sources/BackgroundGeolocationPlugin/PrivacyInfo.xcprivacy']
@@ -31,7 +31,7 @@ def DEFAULT_TARGET_SDK_VERSION = 35
31
31
 
32
32
  // Plugin dependencies
33
33
  def DEFAULT_PLAY_SERVICES_LOCATION_VERSION = "21.3.0"
34
- def DEFAULT_TSLOCATIONMANAGER_VERSION = "4.0.+"
34
+ def DEFAULT_TSLOCATIONMANAGER_VERSION = "4.1.+"
35
35
  def DEFAULT_EVENTBUS_VERSION = "3.3.1"
36
36
 
37
37
  def safeExtGet(prop, fallback) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transistorsoft/capacitor-background-geolocation",
3
- "version": "9.0.2",
3
+ "version": "9.1.0",
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",
@@ -15,7 +15,6 @@
15
15
  "dist/",
16
16
  "src/index.d.ts",
17
17
  "ios/Sources/",
18
- "ios/Frameworks/TSLocationManager.xcframework/",
19
18
  "TransistorsoftCapacitorBackgroundGeolocation.podspec",
20
19
  "Package.swift"
21
20
  ],
@@ -1,61 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>AvailableLibraries</key>
6
- <array>
7
- <dict>
8
- <key>BinaryPath</key>
9
- <string>TSLocationManager.framework/TSLocationManager</string>
10
- <key>LibraryIdentifier</key>
11
- <string>ios-arm64</string>
12
- <key>LibraryPath</key>
13
- <string>TSLocationManager.framework</string>
14
- <key>SupportedArchitectures</key>
15
- <array>
16
- <string>arm64</string>
17
- </array>
18
- <key>SupportedPlatform</key>
19
- <string>ios</string>
20
- </dict>
21
- <dict>
22
- <key>BinaryPath</key>
23
- <string>TSLocationManager.framework/TSLocationManager</string>
24
- <key>LibraryIdentifier</key>
25
- <string>ios-arm64_x86_64-simulator</string>
26
- <key>LibraryPath</key>
27
- <string>TSLocationManager.framework</string>
28
- <key>SupportedArchitectures</key>
29
- <array>
30
- <string>arm64</string>
31
- <string>x86_64</string>
32
- </array>
33
- <key>SupportedPlatform</key>
34
- <string>ios</string>
35
- <key>SupportedPlatformVariant</key>
36
- <string>simulator</string>
37
- </dict>
38
- <dict>
39
- <key>BinaryPath</key>
40
- <string>TSLocationManager.framework/Versions/A/TSLocationManager</string>
41
- <key>LibraryIdentifier</key>
42
- <string>ios-arm64_x86_64-maccatalyst</string>
43
- <key>LibraryPath</key>
44
- <string>TSLocationManager.framework</string>
45
- <key>SupportedArchitectures</key>
46
- <array>
47
- <string>arm64</string>
48
- <string>x86_64</string>
49
- </array>
50
- <key>SupportedPlatform</key>
51
- <string>ios</string>
52
- <key>SupportedPlatformVariant</key>
53
- <string>maccatalyst</string>
54
- </dict>
55
- </array>
56
- <key>CFBundlePackageType</key>
57
- <string>XFWK</string>
58
- <key>XCFrameworkFormatVersion</key>
59
- <string>1.0</string>
60
- </dict>
61
- </plist>