Skip to content

Add dioxus-sdk-haptics#108

Open
LLukas22 wants to merge 10 commits into
DioxusLabs:mainfrom
LLukas22:haptics
Open

Add dioxus-sdk-haptics#108
LLukas22 wants to merge 10 commits into
DioxusLabs:mainfrom
LLukas22:haptics

Conversation

@LLukas22

@LLukas22 LLukas22 commented Apr 2, 2026

Copy link
Copy Markdown

Adds haptics support, heavily inspired by tauri-plugin-haptics.

Also see #107

Basically just packages some kotlin/swift wrappers for a vibrate method and some preconfigured vibration patterns for notifications, impacts and selections.

Since testing haptics on an emulator doesnt make that much sense i included an justfile in the example to easily run on a connected android device. The entire pr was tested against my pixel 10 pro and works on the android side.

⚠️ Warning: I dont own any iOS devices so i cant test the iOS implementation on real hardware. Currently the iOS target compiles without any errors on my linux machine, but i cant guarantee that it works on a real device. Logic wise it should since it is very close to the original tauri code, but including native code can sometimes be weird, so take the iOS implementation with a grain of salt until someone can test it.

@LLukas22

Copy link
Copy Markdown
Author

Updated to manganis 0.7.6. This version contains my fix for primitive args, meaning we can drop most of the glue code i needed to add in the android version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant