react-native-background-geolocation 4.8.2 → 4.9.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.
Files changed (75) hide show
  1. package/README.md +5 -7
  2. package/android/build.gradle +10 -2
  3. package/android/libs/com/transistorsoft/tslocationmanager/{3.2.1/tslocationmanager-3.2.1.aar → 3.2.7/tslocationmanager-3.2.7.aar} +0 -0
  4. package/android/libs/com/transistorsoft/tslocationmanager/3.2.7/tslocationmanager-3.2.7.aar.md5 +1 -0
  5. package/android/libs/com/transistorsoft/tslocationmanager/3.2.7/tslocationmanager-3.2.7.aar.sha1 +1 -0
  6. package/android/libs/com/transistorsoft/tslocationmanager/3.2.7/tslocationmanager-3.2.7.aar.sha256 +1 -0
  7. package/android/libs/com/transistorsoft/tslocationmanager/3.2.7/tslocationmanager-3.2.7.aar.sha512 +1 -0
  8. package/android/libs/com/transistorsoft/tslocationmanager/{3.2.1/tslocationmanager-3.2.1.pom → 3.2.7/tslocationmanager-3.2.7.pom} +1 -1
  9. package/android/libs/com/transistorsoft/tslocationmanager/3.2.7/tslocationmanager-3.2.7.pom.md5 +1 -0
  10. package/android/libs/com/transistorsoft/tslocationmanager/3.2.7/tslocationmanager-3.2.7.pom.sha1 +1 -0
  11. package/android/libs/com/transistorsoft/tslocationmanager/3.2.7/tslocationmanager-3.2.7.pom.sha256 +1 -0
  12. package/android/libs/com/transistorsoft/tslocationmanager/3.2.7/tslocationmanager-3.2.7.pom.sha512 +1 -0
  13. package/android/libs/com/transistorsoft/tslocationmanager/maven-metadata.xml +5 -5
  14. package/android/libs/com/transistorsoft/tslocationmanager-reverse/{3.2.1/tslocationmanager-reverse-3.2.1.aar → 3.2.7/tslocationmanager-reverse-3.2.7.aar} +0 -0
  15. package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.2.7/tslocationmanager-reverse-3.2.7.aar.md5 +1 -0
  16. package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.2.7/tslocationmanager-reverse-3.2.7.aar.sha1 +1 -0
  17. package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.2.7/tslocationmanager-reverse-3.2.7.aar.sha256 +1 -0
  18. package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.2.7/tslocationmanager-reverse-3.2.7.aar.sha512 +1 -0
  19. package/android/libs/com/transistorsoft/tslocationmanager-reverse/{3.2.1/tslocationmanager-reverse-3.2.1.pom → 3.2.7/tslocationmanager-reverse-3.2.7.pom} +1 -1
  20. package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.2.7/tslocationmanager-reverse-3.2.7.pom.md5 +1 -0
  21. package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.2.7/tslocationmanager-reverse-3.2.7.pom.sha1 +1 -0
  22. package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.2.7/tslocationmanager-reverse-3.2.7.pom.sha256 +1 -0
  23. package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.2.7/tslocationmanager-reverse-3.2.7.pom.sha512 +1 -0
  24. package/android/libs/com/transistorsoft/tslocationmanager-reverse/maven-metadata.xml +5 -5
  25. package/app.plugin.js +2 -0
  26. package/expo/plugin/build/androidPlugin.d.ts +6 -0
  27. package/expo/plugin/build/androidPlugin.js +102 -0
  28. package/expo/plugin/build/androidPlugin.js.map +1 -0
  29. package/expo/plugin/build/iOSPlugin.d.ts +4 -0
  30. package/expo/plugin/build/iOSPlugin.js +10 -0
  31. package/expo/plugin/build/iOSPlugin.js.map +1 -0
  32. package/expo/plugin/build/index.d.ts +8 -0
  33. package/expo/plugin/build/index.js +21 -0
  34. package/expo/plugin/build/index.js.map +1 -0
  35. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/Info.plist +9 -9
  36. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/TSAuthorization.h +1 -0
  37. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Info.plist +0 -0
  38. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/TSLocationManager +0 -0
  39. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/TSAuthorization.h +1 -0
  40. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Info.plist +0 -0
  41. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/TSLocationManager +0 -0
  42. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeDirectory +0 -0
  43. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeRequirements-1 +0 -0
  44. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeResources +4 -4
  45. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSAuthorization.h +1 -0
  46. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Resources/Info.plist +6 -6
  47. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/TSLocationManager +0 -0
  48. package/package.json +12 -6
  49. package/src/declarations/interfaces/Authorization.d.ts +28 -0
  50. package/src/declarations/interfaces/Config.d.ts +20 -0
  51. package/src/declarations/interfaces/Location.d.ts +12 -3
  52. package/src/declarations/interfaces/Notification.d.ts +7 -0
  53. package/CHANGELOG.md +0 -1241
  54. package/android/libs/com/transistorsoft/tslocationmanager/3.2.1/tslocationmanager-3.2.1.aar.md5 +0 -1
  55. package/android/libs/com/transistorsoft/tslocationmanager/3.2.1/tslocationmanager-3.2.1.aar.sha1 +0 -1
  56. package/android/libs/com/transistorsoft/tslocationmanager/3.2.1/tslocationmanager-3.2.1.aar.sha256 +0 -1
  57. package/android/libs/com/transistorsoft/tslocationmanager/3.2.1/tslocationmanager-3.2.1.aar.sha512 +0 -1
  58. package/android/libs/com/transistorsoft/tslocationmanager/3.2.1/tslocationmanager-3.2.1.pom.md5 +0 -1
  59. package/android/libs/com/transistorsoft/tslocationmanager/3.2.1/tslocationmanager-3.2.1.pom.sha1 +0 -1
  60. package/android/libs/com/transistorsoft/tslocationmanager/3.2.1/tslocationmanager-3.2.1.pom.sha256 +0 -1
  61. package/android/libs/com/transistorsoft/tslocationmanager/3.2.1/tslocationmanager-3.2.1.pom.sha512 +0 -1
  62. package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.2.1/tslocationmanager-reverse-3.2.1.aar.md5 +0 -1
  63. package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.2.1/tslocationmanager-reverse-3.2.1.aar.sha1 +0 -1
  64. package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.2.1/tslocationmanager-reverse-3.2.1.aar.sha256 +0 -1
  65. package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.2.1/tslocationmanager-reverse-3.2.1.aar.sha512 +0 -1
  66. package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.2.1/tslocationmanager-reverse-3.2.1.pom.md5 +0 -1
  67. package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.2.1/tslocationmanager-reverse-3.2.1.pom.sha1 +0 -1
  68. package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.2.1/tslocationmanager-reverse-3.2.1.pom.sha256 +0 -1
  69. package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.2.1/tslocationmanager-reverse-3.2.1.pom.sha512 +0 -1
  70. package/scripts/cp-declarations +0 -53
  71. package/scripts/declare-module +0 -3
  72. package/scripts/docs-index.html +0 -4
  73. package/scripts/generate-docs +0 -23
  74. package/scripts/tsconfig.json +0 -21
  75. package/scripts/xcode-helpers.js +0 -171
@@ -1203,6 +1203,26 @@ declare module "react-native-background-geolocation" {
1203
1203
  *
1204
1204
  */
1205
1205
  disableAutoSyncOnCellular?: boolean;
1206
+ /**
1207
+ * __`[Android-only]`__ Disables the automatic insert of a location record into the SDK's SQLite database and subsequent HTTP upload if configured with [[Config.url]].
1208
+ * When a [[onProviderChange]] event fires, the Android SDK has traditionally recorded a location to show exactly *when* and *where* the state of location-services was changed (eg: Location-services disabled).
1209
+ *
1210
+ * Android has done this *automatically* due to the difficulty with some platforms' implementation of *Headless Tasks* ([[enableHeadless]]), where *Cordova* and *Capacitor* require implementations using *Java* code, which is often difficult for most developers.
1211
+ *
1212
+ * Some developers' servers have strict HTTP JSON payloads and possibly using [[locationTemplate]], where it's impossible to template the automatically appended `provider` key in the payload.
1213
+ *
1214
+ * ![](https://www.dropbox.com/s/ljacoquuuv5sd5r/disableProviderChangeRecord.png?dl=1)
1215
+ *
1216
+ * Set `true` to disable this default behaviour.
1217
+ *
1218
+ * @example
1219
+ * ```
1220
+ * BackgroundGeolocation.ready({
1221
+ * disableProviderChangeRecord: true
1222
+ * })
1223
+ * ```
1224
+ */
1225
+ disableProviderChangeRecord?: boolean;
1206
1226
 
1207
1227
  /**
1208
1228
  * Configures the SDK for [[Authorization]] with your server (eg: [JSON Web Token](https://jwt.io/)).
@@ -25,10 +25,17 @@ declare module "react-native-background-geolocation" {
25
25
  */
26
26
  accuracy: number;
27
27
  /**
28
- * Altitude above sea-level in meters.
28
+ * [iOS] Altitude above sea-level in meters.
29
+ * [Android] The altitude of this location in meters above the WGS84 reference ellipsoid.
30
+ * - See [[ellipsoidal_altitude]]
31
+ *
29
32
  */
30
33
  altitude?: number;
31
34
  /**
35
+ * The altitude of this location in meters above the WGS84 reference ellipsoid.
36
+ */
37
+ ellipsoidal_altitude?: number;
38
+ /**
32
39
  * Altitude accuracy in meters.
33
40
  *
34
41
  * If this location does not have `altitude_accuracy`, then `-1` is returned.
@@ -101,6 +108,7 @@ declare module "react-native-background-geolocation" {
101
108
  * "speed": [Double],
102
109
  * "heading": [Double],
103
110
  * "altitude": [Double]
111
+ * "ellipsoidal_altitude": [Double]
104
112
  * },
105
113
  * "activity": {
106
114
  * "type": [still|on_foot|walking|running|in_vehicle|on_bicycle],
@@ -127,7 +135,8 @@ declare module "react-native-background-geolocation" {
127
135
  * "accuracy": [Double],
128
136
  * "speed": [Double],
129
137
  * "heading": [Double],
130
- * "altitude": [Double]
138
+ * "altitude": [Double],
139
+ * "ellipsoidal_altitude": [Double]
131
140
  * },
132
141
  * "extras": { // <-- optional meta-data
133
142
  * "foo": "bar"
@@ -180,7 +189,7 @@ declare module "react-native-background-geolocation" {
180
189
  */
181
190
  event?: string;
182
191
  /**
183
- * __[Android only]__. Present (and `true`) if the location was generated by a "Fake Location" application.
192
+ * Present (and `true`) if the location was generated by a "Fake Location" application or simulator.
184
193
  */
185
194
  mock?: boolean;
186
195
  /**
@@ -480,5 +480,12 @@ declare module "react-native-background-geolocation" {
480
480
  */
481
481
  channelName?: string;
482
482
 
483
+ /**
484
+ * Customize the notification channel ID.
485
+ * Defaults to `your.package.name.TSLocationManager`
486
+ *
487
+ * __NOTE__: It is not typically required to change this. Typical use-cases are for users who use an existing Android foreground-service who wish the SDK to share an existing notification and channel.
488
+ */
489
+ channelId?: string;
483
490
  }
484
491
  }