benjamindean / flutter_vibration

Handle vibration on iOS and Android in Flutter apps
229 stars 69 forks source link

On ios play default vibration when failed to play pattern #94

Open Filiponesco opened 11 months ago

Filiponesco commented 11 months ago

Play the default vibration when unable to play a custom pattern.

For example if the core haptic engine is stopped because the app is in the background.

In my opinion, it's a good practice to trigger the default vibration when you can't use a specific pattern.

PS. Playing vibrations using the core haptic engine is not possible when the app is in the background. You can refer to this forum discussion and the Apple documentation for more information.