@tauri-apps/plugin-geolocation 2.2.3 → 2.2.5

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 (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -72,7 +72,7 @@ This plugin automatically adds the following permissions to your `AndroidManifes
72
72
  If your app requires GPS functionality to function, **you** should add the following to your `AndroidManifest.xml` file:
73
73
 
74
74
  ```xml
75
- <uses-feature android:name="android.hardware.gps" android:required="true" />
75
+ <uses-feature android:name="android.hardware.location.gps" android:required="true" />
76
76
  ```
77
77
 
78
78
  The Google Play Store uses this property to decide whether it should show the app to devices without GPS capabilities.
@@ -118,8 +118,8 @@ import {
118
118
 
119
119
  let permissions = await checkPermissions()
120
120
  if (
121
- permissions.location === 'prompt' ||
122
- permissions.location === 'prompt-with-rationale'
121
+ permissions.location === 'prompt'
122
+ || permissions.location === 'prompt-with-rationale'
123
123
  ) {
124
124
  permissions = await requestPermissions(['location'])
125
125
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tauri-apps/plugin-geolocation",
3
- "version": "2.2.3",
3
+ "version": "2.2.5",
4
4
  "license": "MIT OR Apache-2.0",
5
5
  "authors": [
6
6
  "Tauri Programme within The Commons Conservancy"