Skip to content

Commit b7d5d3a

Browse files
Dominic-MoserFabianLars
authored andcommitted
docs(haptics): Include permissions in readme (tauri-apps#2395)
Co-authored-by: Fabian-Lars <[email protected]>
1 parent af3ea8a commit b7d5d3a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

plugins/haptics/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,19 @@ fn main() {
6969
}
7070
```
7171

72+
Second, add the required permissions in the project:
73+
74+
`src-tauri/capabilities/default.json`
75+
76+
```json
77+
"permissions": [
78+
"haptics:allow-impact-feedback",
79+
"haptics:allow-notification-feedback",
80+
"haptics:allow-selection-feedback",
81+
"haptics:allow-vibrate"
82+
]
83+
```
84+
7285
Afterwards all the plugin's APIs are available through the JavaScript guest bindings:
7386

7487
```javascript

0 commit comments

Comments
 (0)