istornz / flutter_gaimon

A Flutter plugin to fully support Haptic feedback with custom pattern 📳
MIT License
27 stars 6 forks source link

Getting ERROR: Unable to add an additional player channel #6

Open shenghan97 opened 1 year ago

shenghan97 commented 1 year ago

I'm doing this app that will give haptic feedback when the user swipes on the screen. I put Gaimon.soft() in onPanUpdates gesture event, it worked well at first, but after a while i get this error:

[Feedback] failed to create player with pattern for <_UIFeedbackCoreHapticsHapticsOnlyEngine: 0x280f7aa00>: Error Domain=com.apple.CoreHaptics Code=-10851 "(null)"
[hapi]     CHHapticEngine.mm:1917  -[CHHapticEngine(CHHapticEngineInternal) getAvailableChannel:]: ERROR: Unable to add an additional player channel
istornz commented 1 year ago

Hum it's seems your pattern has a lot of vibrations, try increasing time between them 👍 https://developer.apple.com/forums/thread/708246

istornz commented 4 months ago

Is this issue can be closed?

Thanks in advance 👍