From 5411db68a823cd7efc30709aa162215fbce3ccac Mon Sep 17 00:00:00 2001 From: Dominic Moser <59155488+Dominic-Moser@users.noreply.github.com> Date: Tue, 4 Feb 2025 11:50:50 -0700 Subject: [PATCH] docs(haptics): Include permissions in readme (#2395) Co-authored-by: Fabian-Lars --- plugins/haptics/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/plugins/haptics/README.md b/plugins/haptics/README.md index e5f0e697..44118812 100644 --- a/plugins/haptics/README.md +++ b/plugins/haptics/README.md @@ -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