iOS stops CHHapticEngine when the app is suspended, on audio-session interrupts
and on idle timeout. Patterns and waveforms then stayed silent for the rest of
the process, because nothing restarted the engine.
Track the stop and restart the engine before the next play. A failed restart
stays pending, so it is retried instead of silencing haptics for good. The rules
live in EngineRestartTracker, which has no CoreHaptics dependency and is tested
in CI, and CI now also builds a new app with the plugin on iOS and Android.
Co-authored-by: Kayke <kaykenogueira7@gmail.com>