Skip to content
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

After the video interstitial ad, the status bar disappears #415

Open
gerchicov-vg opened this issue Jan 13, 2025 · 7 comments
Open

After the video interstitial ad, the status bar disappears #415

gerchicov-vg opened this issue Jan 13, 2025 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@gerchicov-vg
Copy link

MAX SDK Version

current latest

Device/Platform Info

any

Current Behavior

Created a separate bug report because it appears you don't read bug reports which were already closed at least once.
#209 (comment)
In other words this library modified status bar for the whole app but it shouldn't

Expected Behavior

applovin sdk doesn't modify status bar or modifies and then reverts it to its usual state.

How to Reproduce

#209 (comment)

Reproducible in the demo app?

Yes

Additional Info

No response

@gerchicov-vg gerchicov-vg added the bug Something isn't working label Jan 13, 2025
@applovinAsh
Copy link
Contributor

Hi @gerchicov-vg - looking at your comment I see that you have set navigationController?.navigationBar.isHidden = true, do you set it back to false after the ad? If you have set the navigation bar to hidden, it will stay hidden in your application until you set isHidden to false.

@applovinAsh applovinAsh self-assigned this Jan 16, 2025
@gerchicov-vg
Copy link
Author

@applovinAsh you didn't understand the problem. You saw that I call navigationController?.navigationBar.isHidden = true but it is navigation bar and this code is called inside viewDidLoad. So it is preconditions.

Note - the problem is with status bar only, not the navigation bar. Before interstitial:
before

After interstitial:
after

Status bar text was white but became black.

@thomasmso
Copy link
Member

We are pretty sure that our ads will hide the status bar but return it back to the original state. This is the first time we've heard of this issue so we suspect it is your integration as well. We're happy to work with you on it, but without a functional project that easily reproduces the issue (e.g. in a fork of the demo app), our hands are tied.

@gerchicov-vg
Copy link
Author

@thomasmso
Wait, I took your own sample project and very slightly modified it. Here are steps:
#209 (comment)

Anyways you need to use any GADApplicationIdentifier (otherwise your app will crash) and I can't give you my identifier because it is private information.

@thomasmso thomasmso reopened this Jan 16, 2025
@thomasmso
Copy link
Member

Why do we need GADApplicationIdentifier? Which is the ad network that displayed the problematic ad? You can get this via the didDisplayAd: callback, by inspecting the MAAd.networkName property.

@gerchicov-vg
Copy link
Author

gerchicov-vg commented Jan 16, 2025

@thomasmso
you need GADApplicationIdentifier because otherways you get the error on app launch:

"The Google Mobile Ads SDK was initialized without an application ID. Google AdMob publishers, follow instructions at https://goo.gle/admob-ios-update-plist to set a valid application ID. Google Ad Manager publishers, follow instructions at https://goo.gle/ad-manager-ios-update-plist."

ad.networkName == "AppLovin"
I don't know a real network which causes this problem ad but it happens at least with applovin test ads.
Possibly it is reproducible even without of adding pods.
Simulator Screenshot - iPhone 15 Pro - 2025-01-16 at 12 49 30
Simulator Screenshot - iPhone 15 Pro - 2025-01-16 at 12 49 24
Simulator Screenshot - iPhone 15 Pro - 2025-01-16 at 12 49 15

@applovinAsh
Copy link
Contributor

We are unable to recreate the issue using our demo app with your suggested changes. The status bar always returns after the ad is done showing, attaching a video. Are you seeing this on a specific device or OS version?

test1.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants