Hi, all we are also facing the same issue, any pointers on what may be causing this?
No, totally no idea...
After googling iOS 12.2 AVPlayer / Control Center related topics, we came across this SO post: https://stackoverflow.com/questions/55725591/ios-12-2-lockscreen-controlos-missing, and started to suspect if the issue was related to the DFPBannerView (kGADAdSizeSmartBannerPortrait) at the bottom of each page. (Google-Mobile-Ads-SDK v7.42.2)
Then we commented out the lines of codes that load the banner request, and distributed a test version through TestFlight. Nearly 90% of the testers reported that they did not experience the problems again with the no-banner version.
Today, we found another SO post (https://stackoverflow.com/questions/56764170/ad-banners-causing-mpnowplayinginfocenter-to-lose-state) which seems to have similar, if not the same, problem.
Do you have any Google Mobile Ads in your app?
We are facing the similar problem as described in the SO link.
Yes we are also showing Google Mobile Ads SDK to show ads.We believed some how Google ADS are responible for this issue, based on that we started our investigation to find the responsible ad causing this issue.
As per our current observation, the responsible AD is an Interstitial Ad (Might be any AD having audio component). We have looked into the content of the responsible AD file (downloaded as html content) and found that it contains some Audio Component and cocos2d code.
We have also verified that this issue is happening only on devices having iOS 12.2 and above.
The hypothesis that whenever an HTML file having some audio component is loaded into UIWebview Audio Session loses its focus, might be true.
We are looking further into this.