B4X FEED AdaptiveSize.Get("height") problem

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: AdaptiveSize.Get(\"height\") problem است. این موضوع تا کنون 33 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع AdaptiveSize.Get(\"height\") problem
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
33
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
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:
[H3] [/H3]
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...
برای دیدن تصاویر باید ثبت نام کنید


I noticed that the problem only occurs when I add the instructions for reward ads from here:
[H3] [/H3]
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: Before starts, another excellent...
برای دیدن تصاویر باید ثبت نام کنید


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...



 

عقب
بالا