benjamindean / flutter_vibration

Handle vibration on iOS and Android in Flutter apps
219 stars 68 forks source link

Add a `supportCustomVibrations` method #34

Closed Skyost closed 4 years ago

Skyost commented 4 years ago

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 :

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 !

benjamindean commented 4 years ago

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

Skyost commented 4 years ago

Just submitted a pull request that should do the job.

benjamindean commented 4 years ago

Closed in #35