You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/geolocation/README.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,16 @@ fn main() {
91
91
.expect("error while running tauri application");
92
92
}
93
93
```
94
-
94
+
Then, for instance, grant the plugin the permission to check or request permissions from the user and to read the device position in the file `src-tauri/capabilities/default.json`
95
+
```
96
+
"permissions": [
97
+
"core:default",
98
+
"geolocation:allow-check-permissions",
99
+
"geolocation:allow-request-permissions",
100
+
"geolocation:allow-get-current-position",
101
+
"geolocation:allow-watch-position",
102
+
]
103
+
```
95
104
Afterwards all the plugin's APIs are available through the JavaScript guest bindings:
0 commit comments