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

Co-authored-by: Fabian-Lars <github@fabianlars.de>
pull/2394/head
Dominic Moser 4 months ago committed by GitHub
parent 80804adc68
commit 5411db68a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

Loading…
Cancel
Save