@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.
- package/README.md +3 -3
- 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
|
}
|