flutter_vibration icon indicating copy to clipboard operation
flutter_vibration copied to clipboard

MissingPluginException on Linux desktop

Open aluedtke7 opened this issue 2 years ago • 2 comments

Hi, I'm using vibration in an app on Android, Web and Linux. Android and Web works as expected but since some days, I get a

MissingPluginException(No implementation found for method hasVibrator on channel vibration)

on Linux. I check via await vib.Vibration.hasVibrator() ?? false if vibration is supported. This is also the line where the Exception is thrown. This was working before.

I use now Flutter 3.3.4-stable but I also tried 3.3.0-stable, 3.3.2-stable and 3.3.3-stable. Beside that I use vibration 1.7.6 and vibration_web 1.6.5. My Linux version is Manjaro stable with kernel 5.19.7-1-MANJARO.

I know I could skip the vibration if the app runs on desktop.

Is there something else I can do or should I wait for the next release?

aluedtke7 avatar Oct 05 '22 18:10 aluedtke7

Hey! Did it work on the previous versions of the plugin?

benjamindean avatar Oct 06 '22 08:10 benjamindean

Hi, I looked at my git commit log and I must tell you, that I already started with ver 1.7.6 of vibration and 1.6.5 of vibration_web.

But I made a quick test with version 1.7.3: same exception on linux (no other checks made).

aluedtke7 avatar Oct 06 '22 10:10 aluedtke7