-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interstitial Ad doesn't cover all screen for a specific device #1013
Comments
Hi @figengungor, are you able to reproduce this issue using our Android interstitial example? This will help us identify if it's a Flutter |
Hi @malandr2, Sorry I couldn't run the Android one, it requires to download extra things. I'm not working native so I won't spend time on it. This is not a crucial bug for me for now. You can try to run it on a Samsung device if you want. |
@figengungor gotcha, I've escalated to the engineering team to see if they can reproduce. |
The same is happening to me on devices with cutout such as the s23 as well. Not exactly sure if it's that, but it's worth double-checking https://developer.android.com/develop/ui/views/layout/display-cutout |
Is there any workaround? Tried to downgrade to 3.1.0, however, this still happens (tested on s10 plus). My app is in production and this issue triggered a violation (Google-served ads obscuring content) 😞 |
Hopefully this issue is resolved soon, as this is already an issue in AdMob with 'Google Ads hiding content'. Doctor summary (to see all details, run flutter doctor -v): ! Doctor found issues in 1 category. sdk gphone x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator) |
@ALL if confirming the issue, please add the device and ad unit ID you are experiencing the issue with to help troubleshoot. Thanks! |
Android emulator Pixel 6 Pro. test unid id: ca-app-pub-3940256099942544/1033173712 |
I'm using Samsung Galaxy S10+. I just want to note that after further testing, I noticed that this is happening in all apps... I'm suspecting that this is an SDK issue. |
I have the same issue, both in my app and with package examples (rewarder and rewardedinterstitial) |
คุณแก้ไขใด้หรือยังครับปัญหานี้ผมก็เจอมาแต่ปรับปรุงแล้วครับ |
I have escalated this information to the ad formats team. I have a feeling this is not directly a Flutter |
today i test Admob Interstitial Example on GitHub By Android Studio java Ads show full screen but in flutter not full screen , you can see attachment for both projects |
Hi @ibrahimtaleb11, thank you for the investigation. We have also deduced it is a Flutter issue and this is something that is actively being worked on by the Flutter team. The fix is expected to be in our next upcoming release ( EDIT: The fix requires more time and did not make it in |
i just fix this admob violation, I replied and submitted for review with the description that the ad that covers the application is an interstitial ad that is supposed to cover the application, this ad is not a banner ad. I also request that it be checked by a real person |
Hi! I'm testing package version 5.0.0, but the problem is not solved. Test ID, Pixel 6 pro emulator. Please check |
Hi @barchinvictor, the fix requires more time and did not make it in I updated my previous comment. |
hi @gustysetyono I have a admob policy center violation "Encouraging Accidental Clicks - Layout". Do you have the same thing. If so i can also request a review like you did. Thank you. |
Hello everyone. So about this issue, as it was pointed out before, seems to affect devices from api 27 to 32 that have some cutout on top (notches). Unfortunately, this is related to the way Flutter handles this device configuration. We are looking into a possible general fix in the GMA Android SDK, but meanwhile you can use the following workaround. It is necessary to modify the Android theme used by the Flutter app. In the example app, there is a generic Android theme assigned by default so a new theme should be created in the Make sure to inherit from that same default theme:
After you have your theme created or if you already had one theme before, please add the following item:
The The full example theme file would end up like this:
This change shouldn't affect any display behavior at all but please let us know if that is not the case or if this does not work for your use case. You can learn more about this configuration here Hope this helps! |
Hi @LTPhantom I have tested out the above workaround on my notched device(Oneplus 7T) with my own app. Now the notched area becomes black and the ad covers the remaining area. Hope the issue will be fixed to show full screen ad on notched devices. |
We have opened a bug ticket with Flutter to track the progress of this issue. Stay tuned for any updates. |
The flutter view dimension is changed by InterstatialAd when shown. Please check on "Show Guidelines" on flutter "Widget Inspector", and you will find some hints. The original fullscreen-ed view is offset downside by a distance of statusbar's height and a black statusbar appears. FYI. @LTPhantom @malandr2 Thanks! |
The background of status bar is black. The icons and text could be shown when code: added. However, the app root view's position and dimension are still wrong. |
I have the same issue with interstitial and rewarded videos. I have noticed that when we show the ad, the content behind is moved up, outside of the safeArea. When the interstitial is dismissed, the content jumps back down in its place. (as shown with the red down arrow). Edit: applying the following code in styles.xml for light and dark mode fixes the issue:
The following code also works:
|
@LTPhantom ICYMI |
Hi @LTPhantom please inform to us if we use your suggest solution , it will not be affected my Admob Account , |
@ibrahimtaleb11 im using this solution and i have not received any violation notice. Can't 100% assure you that you will not receive one but its been almost 2 weeks now.... i have a killswitch in the app so that if i receive one, the ads will be disabled remotely |
None of above mentioned issues work for me with device poco f3 with android 13, @malandr2, please let us know as soon as problem is solved |
@Matees and others can follow along flutter/flutter#146092 to see any updates from the Flutter team related to this. It may be infeasible for our team to directly resolve and may vary across the number of Android devices. |
The issue happens on all devices with native code in Jetpack Compose - https://stackoverflow.com/questions/78726976/content-of-the-activity-jumps-under-the-status-bar-when-admobs-interstitial-is Samsung/Pixel: Here's the default example of empty activity created with Jetpack Compose, just replaced a text with a button to show fullscreen ad (Admob Interstitial) class MainActivity : ComponentActivity() {
Before pressing the button the UI looks fine (as expected): But when I click the button to show the ad the content of app's activity jumps under the status bar: Samsung S22 Ultra This is very annoying. I have this issue in my real projects where I also use Jetpack Compose. We need to use The issue happens with any activity which appears above app's own activity, for example:
and so on Pixe emulator: |
@anonym24 you can create an issue in the AdMob Developers Forum for it to be properly addressed - your issue is related to the Android Google Mobile Ads SDK, not the flutter plugin. Thanks! |
Hi all,
When Ad has been shown
When Ad has been dismissed
I think that now can fix the policy and do not show black on notch place. |
Environment: Emulator: Pixel 6 pro with release Upsidedown Cake API Level 34 Describe the problem: Expected result: Actual result: This triggered google admob ad restriction "Layout Encourages Accidental Clicks - Unexpected Launch Interstitials", along with image like the result above. It works fine on my device and many emulators. I had spent some time searching and testing multiple emulators and finally managed to find the affected emulator. Any working solution? please help. Thanks! |
+1 same issue. |
#1013 (comment) applied, result not perfect but better than previous. |
For me this code, worked just add this in app, res value
|
please refers to flutter/flutter#146092 and stop posting screenshot of same issue someone has posted over and over here again |
@devfemibadmus it say Closing as working as intended i dont think this is intended. Black section should be bg of the ad. Also i think you don't know value of those test data. |
Hi, I recently implemented admob interstitial ads in my project. It is showing in full screen for Android and iOS devices. You can check the screenshots for both platforms. |
You sould use WindowInsets.displayCutout
|
[REQUIRED] Step 1: Describe your environment
Plugin Version
google_mobile_ads: ^4.0.0
[REQUIRED] Step 2: Describe the problem
Steps to Reproduce
Expected results:
I want to see full screen interstitial app.
Actual results:
It seems like hiding the status bar and then showing my app bar as much as status bar's height.
The text was updated successfully, but these errors were encountered: