Baseflow / Baseflow/XamarinMediaManager

How to make sure the audio session has terminated and my app can go suspended?

Open
#798 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
763
Forks
299
PR merge metrics
No merged PRs in 30d

Description

MediaManager plug-in works very nice with playing background audio. Even on iOS, when background audio is playing, my UI timers keep running indefinitely, they can fetch HTTP data, update media info, etc.

However, even if the user stops playing audio (I call `CrossMediaManager.Current.Stop()`) my timers still keep running when I minimize the iOS app. Of course, I can try to stop all timers manually (and hope not to forget for one) but I still don't know whether that is a guarantee that my app will go suspended and stop consuming energy from the iPhone's battery.

Is there a 'right' way how to terminate the Audio session?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.