allowBackgroundAudioPlaying property
Set to true
to allow audio playing when the app goes in background or the screen is locked or another app is opened.
However, there will be no controls in the notification bar or on the lockscreen.
Also, make sure to not call PlatformInAppWebViewController.pause, otherwise it will stop audio playing.
The default value is false
.
IMPORTANT NOTE: if you use this setting, your app could be rejected by the Google Play Store. For example, if you allow background playing of YouTube videos, which is a violation of the YouTube API Terms of Service.
Officially Supported Platforms/Implementations:
- Android native WebView
Implementation
bool? allowBackgroundAudioPlaying;