benjamindean / flutter_vibration

Handle vibration on iOS and Android in Flutter apps
217 stars 67 forks source link

MissingPluginException on Linux desktop #77

Open aluedtke7 opened 1 year ago

aluedtke7 commented 1 year ago

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?

benjamindean commented 1 year ago

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

aluedtke7 commented 1 year ago

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).