Interstitial Ads - safe area iPhone 16

274 views
Skip to first unread message

Nelson George

unread,
Oct 16, 2024, 5:57:11 AMOct 16
to Google Mobile Ads SDK Developers
Refer to the attached screenshots from iPhone 16. These are test ads but I see that the ad close buttons are not clickable as they are above the safe area. How can we fix this issue? 
Also see that the top area with black shade is not visible  as well . 
We tried the following code but no success

  func adWillPresentFullScreenContent(_ ad: GADFullScreenPresentingAd) {

        // Get the active window scene

        if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene,

           let keyWindow = windowScene.windows.first(where: { $0.isKeyWindow

     }) {

            let safeAreaInsets = keyWindow.safeAreaInsets


            // Log the safe area insets (Optional: for debugging)

            print("Safe Area Insets: Top: \(safeAreaInsets.top), Bottom: \(safeAreaInsets.bottom)")


            // Adjust the presenting view controller's frame based on the safe area insets

            if let presentingViewController = presentingViewController {

                presentingViewController.view.frame = CGRect(x: safeAreaInsets.left,

                                                             y: safeAreaInsets.top,

                                                             width: view.bounds.width - safeAreaInsets.left - safeAreaInsets.right,

                                                             height: view.bounds.height - safeAreaInsets.top - safeAreaInsets.bottom)


            }

        }

    }

    

Screenshot 2024-10-13 at 7.17.41 PM.png
Screenshot 2024-10-13 at 7.21.25 PM.png
Screenshot 2024-10-13 at 7.19.25 PM.png

Mobile Ads SDK Forum Advisor

unread,
Oct 16, 2024, 6:25:30 PMOct 16
to gne...@gmail.com, google-adm...@googlegroups.com
Hi,

Thank you for contacting Mobile Ads SDK Support Team,

I've raised this issue to the wider team and will get back to you once i received any updates on this. Meanwhile, your patience is important.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGehl:ref" (ADR-00271891)

Thanks,
 
Google Logo Mobile Ads SDK Team


Jurgis

unread,
Oct 22, 2024, 9:10:25 AMOct 22
to Google Mobile Ads SDK Developers
Hello,

This issue is reproducible on iPhone 16 Pro running iOS 18.0 with GoogleMobileAds 11.10.0 and adUnitId "ca-app-pub-3940256099942544/4411468910".

If status bar is hidden, close button is partly visible and clickable.
If status bar is shown, close button is partly visible and not clickable.

In View Hierarchy close button position is correct. Maybe setting constraints and other properties based on "Test mode" label (which is displayed correctly) might help.

Simulator Screenshot - iPhone 16 Pro - 2024-10-22 at 10.37.52.pngScreenshot 2024-10-22 at 10.49.36.png

Jurgis

unread,
Oct 22, 2024, 9:10:32 AMOct 22
to Google Mobile Ads SDK Developers
I think it was also reported earlier, e.g., https://groups.google.com/g/google-admob-ads-sdk/c/BOpG7z3KYUg/m/aehGCCtFAAAJ.

On Thursday, October 17, 2024 at 1:25:30 AM UTC+3 Mobile Ads SDK Forum Advisor wrote:

Beracah LLC

unread,
Oct 29, 2024, 8:45:19 PMOct 29
to Google Mobile Ads SDK Developers
Thanks for checking.. Any potential solutions?   Is  there an option to hide the status bar? 

Mobile Ads SDK Forum Advisor

unread,
Oct 29, 2024, 11:29:33 PMOct 29
to gne...@gmail.com, google-adm...@googlegroups.com

Hi,

Your issue is still under investigation. Once we receive any updates, we will intimate you. Meanwhile, your patience is important.

Jekuk Kim

unread,
Nov 7, 2024, 8:28:44 AMNov 7
to Google Mobile Ads SDK Developers
Same issue on Rewarded Ads.
Device : IPhone 16 pro max, IOS version 18.

2024년 10월 30일 수요일 오후 12시 29분 33초 UTC+9에 Mobile Ads SDK Forum Advisor님이 작성:

Mobile Ads SDK Forum Advisor

unread,
Nov 7, 2024, 10:09:50 AMNov 7
to j...@lifefesta.com, google-adm...@googlegroups.com

Hi,

I will raise this issue with our team regarding this and one of my team members will reach out to you once we have an update on this. Meanwhile, your patience is highly appreciated.  

Jekuk Kim

unread,
Nov 20, 2024, 5:03:54 AMNov 20
to Google Mobile Ads SDK Developers
Hi,
Are there any updates?

2024년 11월 8일 금요일 오전 12시 9분 50초 UTC+9에 Mobile Ads SDK Forum Advisor님이 작성:

Mobile Ads SDK Forum Advisor

unread,
Nov 20, 2024, 1:52:46 PMNov 20
to j...@lifefesta.com, google-adm...@googlegroups.com
Hi,

This issue in under investigation, i will intimate you once i get any update on this. Meanwhile, your patience is important.

Thanks
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGehl:ref" (ADR-00271891)

Thanks,
 
Google Logo Mobile Ads SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5


 


Reply all
Reply to author
Forward
0 new messages