|
|
@ -73,13 +73,14 @@ Second, add the required permissions in the project:
|
|
|
|
|
|
|
|
|
|
|
|
`src-tauri/capabilities/default.json`
|
|
|
|
`src-tauri/capabilities/default.json`
|
|
|
|
|
|
|
|
|
|
|
|
```rust
|
|
|
|
```json
|
|
|
|
"permissions": [
|
|
|
|
"permissions": [
|
|
|
|
+"haptics:allow-impact-feedback",
|
|
|
|
+"haptics:allow-impact-feedback",
|
|
|
|
+"haptics:allow-notification-feedback",
|
|
|
|
+"haptics:allow-notification-feedback",
|
|
|
|
+"haptics:allow-selection-feedback",
|
|
|
|
+"haptics:allow-selection-feedback",
|
|
|
|
+"haptics:allow-vibrate"
|
|
|
|
+"haptics:allow-vibrate"
|
|
|
|
]```
|
|
|
|
]
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Afterwards all the plugin's APIs are available through the JavaScript guest bindings:
|
|
|
|
Afterwards all the plugin's APIs are available through the JavaScript guest bindings:
|
|
|
|
|
|
|
|
|
|
|
|