Foregrounded tasks do not shut down correctly on mobile
qdot opened this issue · comments
On iOS, foregrounded tasks don't shut down when the stop button is hit. The engine stays running forever.
On Android, the foreground service comes up once and then can be stopped, but if it is started a second time it will stay running forever.
On both platforms, the Engine API level log messages are never relayed up to flutter.
Fixed in v2.5.0. The foreground task destroy event was exiting too fast, not giving the thread enough time to clean up.