Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vibrate without user interaction #60

Closed
begandroide opened this issue Apr 26, 2021 · 3 comments
Closed

Vibrate without user interaction #60

begandroide opened this issue Apr 26, 2021 · 3 comments

Comments

@begandroide
Copy link

Hi! how to vibrate without user interaction? i'm making flutter app that read qr codes, and i want vibrate as feedback once qr is readed.

The vibrate function is usefull when i tap a button or i have interaction with the UI, but if i call from a stream or subscription the vibration is not triggered.

Regards

@benjamindean
Copy link
Owner

Hey! Can you provide an example? It should work, but I suspect that when it comes to streams it might not due to some platform channel restrictions.

@begandroide
Copy link
Author

ok @benjamindean in couple of hours i will do it. And yes, event comes from a stream... Yesterday searching i found that haptic feedback only can be triggered with user interaction, so i think that is a api device restriction (but is only a supose, i didn't find it in official Android/Flutter page).

@benjamindean
Copy link
Owner

Have you been able to solve the issue? I will close it for now and will reopen if needed.

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

No branches or pull requests

2 participants