Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flutter-audio-issue

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.

App structure

  • Chat list (first page): five chats.
  • Chat page: opened by tapping a chat. Initializes the Kontext SDK (AdsProvider) with a fresh conversationId/userId on 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 AdsProvider and any ad WebViews, then returns to the chat list.

Repro steps

  1. Start music playback in another app (Apple Music, Spotify, ...).
  2. Run this app on a physical iOS device.
  3. Open a chat, send a message, wait for the ad to load.
  4. Navigate back to the chat list.
  5. Observe whether the music pauses (most likely when a video ad was served — check the adFilled events in the logs).

Repeat across chats; the issue is intermittent and appears tied to which ad format fills.

Setup

The publisher token and placement code are in lib/constants.dart.

flutter pub get
flutter run

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages