Repro app for background music pauses on iOS when exiting a chat that used the Kontext Flutter SDK.
Reported behavior: with the production SDK, background music (e.g. Apple Music/Spotify) sometimes pauses when leaving a chat screen.
- Chat list (first page): five chats.
- Chat page: opened by tapping a chat. Initializes the Kontext SDK (
AdsProvider) with a freshconversationId/userIdon every entry. Send a message to trigger an ad preload; an inline ad slot renders under each message. - Exit: navigating back disposes the chat page and with it the
AdsProviderand any ad WebViews, then returns to the chat list.
- Start music playback in another app (Apple Music, Spotify, ...).
- Run this app on a physical iOS device.
- Open a chat, send a message, wait for the ad to load.
- Navigate back to the chat list.
- Observe whether the music pauses (most likely when a video ad was served — check the
adFilledevents in the logs).
Repeat across chats; the issue is intermittent and appears tied to which ad format fills.
The publisher token and placement code are in lib/constants.dart.
flutter pub get
flutter run