Hi,
I'm trying to load the height of the Admob banner so I can position the other app elements.
I use the standard steps:
I noticed that the problem only occurs when I add the instructions for reward ads from here:
My application is always in landscape mode (#SupportedOrientations: landscape)
So the problem occurs at the first launch of the application.
I get an unrealistically large number for AdaptiveSize.Get("height"). Specifically, it is 247px on my device. (Image1)
I assume that this data is loaded before the orientation is changed. Subsequently, the test advertisement is not even shown.
If I restart the app, then everything is fine (Height=156px) and test ads load normally (Image2).
No matter how many times I kill and reload the app later everything is fine. The problem is only on the first fresh start (if I reinstall).
Also important to emphasize. If my system is in landscape mode and I start the application for the first time, everything is also fine.
The problem is if the system is in portrait mode (which is almost always the case) and the first launch of the application.
Do you have any idea how to get around this problem?
I'm trying to load the height of the Admob banner so I can position the other app elements.
I use the standard steps:
FirebaseAdMob2 - Google Mobile Ads SDK v20+
This is a wrapper for Google Mobile Ads v20+ SDK. It is a modified version of FirebaseAdmob (1). This library works with Google Mobile Ads v20+. The previous library works with v19-. Note that you can use FirebaseAdMob2 without creating a Firebase account. It supports banner ads and...
www.b4x.com
I noticed that the problem only occurs when I add the instructions for reward ads from here:
arfRewardedAd - Reward Ads for AdMob2
Hello I'd like to share a class that I made for Reward Ads that I use in my apps/games. It's little bit different from what is found here: https://www.b4x.com/android/forum/threads/adshelper-extends-firebaseadmob2-google-mobile-ads-v20-0.129696/#post-815445 Before starts, another excellent...
www.b4x.com
My application is always in landscape mode (#SupportedOrientations: landscape)
So the problem occurs at the first launch of the application.
I get an unrealistically large number for AdaptiveSize.Get("height"). Specifically, it is 247px on my device. (Image1)
I assume that this data is loaded before the orientation is changed. Subsequently, the test advertisement is not even shown.
If I restart the app, then everything is fine (Height=156px) and test ads load normally (Image2).
No matter how many times I kill and reload the app later everything is fine. The problem is only on the first fresh start (if I reinstall).
Also important to emphasize. If my system is in landscape mode and I start the application for the first time, everything is also fine.
The problem is if the system is in portrait mode (which is almost always the case) and the first launch of the application.
Do you have any idea how to get around this problem?