Skip to content

Release 4.3.0

Latest

Choose a tag to compare

@zxcpoiu zxcpoiu released this 15 Sep 12:07

Release 4.3.0

Changes

#261

Ringtone cleanup can interfere with an active call or a newer ringtone on Android. Audio focus, vibration, and delayed callbacks need to follow the same lifecycle so stopping one session does not affect another.

This PR tracks ringtone, call, and manual audio focus ownership separately, ignores stale callbacks, and keeps audio setup and cleanup in order. It also stops vibration with the ringtone, preserves ringtone mode when changing the speaker route, and replaces audio focus requests when their attributes change.

Adds lifecycle state tests, JS wrapper tests, and documentation for audio focus behavior.

⚠️ Potentially breaking change

Theoretically / Functionality not changed.
But due to refactored audio route / thread safe handling / atomic actions moved to native side, so should retest for your own projects and use cases.

What's Changed

  • Fix Android ringtone and call audio lifecycle by @zxcpoiu in #261

Full Changelog: 4.2.2...4.3.0