docs(haptics): Include permissions in readme (#2395)

Co-authored-by: Fabian-Lars <github@fabianlars.de>
This commit is contained in:
Dominic Moser
2025-02-04 11:50:50 -07:00
committed by GitHub
parent 80804adc68
commit 5411db68a8
+13
View File
@@ -69,6 +69,19 @@ fn main() {
}
```
Second, add the required permissions in the project:
`src-tauri/capabilities/default.json`
```json
"permissions": [
"haptics:allow-impact-feedback",
"haptics:allow-notification-feedback",
"haptics:allow-selection-feedback",
"haptics:allow-vibrate"
]
```
Afterwards all the plugin's APIs are available through the JavaScript guest bindings:
```javascript