Admob Interstitial Ad breaks AirPlay background mode

93 views
Skip to first unread message

Anton K

unread,
Aug 22, 2019, 12:28:48 PM8/22/19
to Google Mobile Ads SDK Developers
I added Admob Interstitial Ad to my iOS App and found a strange problem. In the application I play video content. I use standard AVPlayer with a standard interface. This interface has an AirPlay button. If I turn on the video and then the AirPlay session, the video goes to Apple TV. If I minimize the application, the video on the Apple TV stops playing.

    override func viewDidLoad() {
            super.viewDidLoad()
            
            self.createPlayer()
            
            self.interstitial = self.createAndLoadInterstitial()
    }

If I comment this string: 

    //self.interstitial = self.createAndLoadInterstitial()

I do not have such problem, video continues to play. And problem is reproduced even before showing interstitial ad. Also I watched a strange situation, after hiding app instead of Apple TV home screen I saw a first frame of interstitial ad with a hung loading indicator. Problem is not reproduced with test unit, it seems because test ad has static image.

    func createAndLoadInterstitial() -> GADInterstitial {
            // test unit has static image, no problem with test unit, problem is reproduced only with real video ads.
            interstitial = GADInterstitial(adUnitID: "ca-app-pub-3940256099942544/4411468910")
            interstitial.delegate = self
            interstitial.load(GADRequest())
            return interstitial
        }

Mobile Ads SDK Forum Advisor Prod

unread,
Aug 22, 2019, 2:53:20 PM8/22/19
to dexter...@gmail.com, google-adm...@googlegroups.com
Hello Anton,

Thanks for reaching out to us. Can you provide us with a sample app( to reproduce the issue) and perhaps a video recording of this issue? We would gladly have a look into it. You can use "Reply Privately to Author" option to share the details privately.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
 

ref:_00D1U1174p._5001UHEOv6:ref

Anton K

unread,
Aug 22, 2019, 7:22:14 PM8/22/19
to Google Mobile Ads SDK Developers
Hello,

do you have Apple TV device to reproduce issue?

четверг, 22 августа 2019 г., 21:53:20 UTC+3 пользователь mobileadssdkforumadvisor написал:

Mobile Ads SDK Forum Advisor Prod

unread,
Aug 23, 2019, 2:26:51 PM8/23/19
to dexter...@gmail.com, google-adm...@googlegroups.com
Hello Anton,

Currently the SDK does not support serving ads in Apple TV apps.

Anton K

unread,
Aug 24, 2019, 7:21:32 PM8/24/19
to Google Mobile Ads SDK Developers
Hello, my app is for iOS only, but any video iOS app supports AirPlay. Problem occurs when I use AirPlay session inside iOS app. Admob ad breaks AirPlay session when I hide app. If I disable Admob ads, problem doesn't occur.

пятница, 23 августа 2019 г., 21:26:51 UTC+3 пользователь mobileadssdkforumadvisor написал:
Reply all
Reply to author
Forward
0 new messages