We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 059dcb9 commit 9ece5b3Copy full SHA for 9ece5b3
plugins/geolocation/README.md
@@ -92,6 +92,20 @@ fn main() {
92
}
93
```
94
95
+Then, for instance, grant the plugin the permission to check or request permissions from the user and to read the device position
96
+
97
+`src-tauri/capabilities/default.json`
98
99
+```json
100
+ "permissions": [
101
+ "core:default",
102
+ "geolocation:allow-check-permissions",
103
+ "geolocation:allow-request-permissions",
104
+ "geolocation:allow-get-current-position",
105
+ "geolocation:allow-watch-position",
106
+ ]
107
+```
108
109
Afterwards all the plugin's APIs are available through the JavaScript guest bindings:
110
111
```javascript
0 commit comments