benjamindean/flutter_vibration

Add a `supportCustomVibrations` method

Closed this issue · 3 comments

Hey.

I love the latest plugin update that added the CoreHaptics support. Would it be possible for you to create a method (can be named supportCustomVibrations or whatever) which would return :

  • true on Android.
  • true on CoreHaptics iOS devices (and false on older devices).

This way, we could have a better control on which devices we can play custom vibrations, and on which devices it's not possible to do so.

Thanks !

Sure! Good idea. Will implement it as soon as I can.

Just submitted a pull request that should do the job.

Closed in #35