AppLovin / AppLovin-MAX-Unity-Plugin

110 stars 31 forks source link

App-Lovin Max Banner Resolution Issue after closing the interstitial ad. #362

Open goharjaved opened 1 month ago

goharjaved commented 1 month ago

MAX Plugin Version

6.4.3

Unity Version

2021.3.35

Device/Platform Info

IOS 17.3

Current Behavior

I am facing applovin banner placement issue on IOS. When we close the interstitial ad the banner jump to the centre of the screen. I have tried all the solutions but unable to fix this issue. It looks that IOS screen canvas snap to some pixels down.

Expected Behavior

No response

How to Reproduce

-Install the Demo App -Show Banner Ad

Additional Info

https://github.com/AppLovin/AppLovin-MAX-Unity-Plugin/assets/79394070/8d0058ee-6245-4a9a-bd3c-d84f6f7cb1af

santoshbagadi commented 1 month ago

Hi @goharjaved , this is a known issue and we are working on a fix for this. If you wish to test the fix for us right now, you can do so by replacing this line in Assets/MaxSdk/AppLovin/Plugins/iOS/MAUnityAdManager.m file to the following

UILayoutGuide *layoutGuide = superview.window ? superview.window.safeAreaLayoutGuide : superview.safeAreaLayoutGuide;
goharjaved commented 1 month ago

Hi @santoshbagadi , thanks for the solution.

YeonjoonJung commented 3 weeks ago

Hi, we have almost same problem. The game screen resolution is changed after watching video ad. I tried @santoshbagadi your suggestion by replacing that code, but it didn't work. What we've found is that 'applovin's ad occurs the resolution problem, but admob's ad has no problem.

santoshbagadi commented 3 weeks ago

@YeonjoonJung we are working on more robust fix that would fix the issue for our ads. We'll update here once we have the fix released.

maximilianbuck commented 1 week ago

Hi @YeonjoonJung In version 6.4.4 of our Unity plugin we added a potential fix. It's behind a setting though so you have to enable it like this: MaxSdk.SetExtraParameter("pisw", "true");

soqman commented 1 week ago

i tryed to use MaxSdk.SetExtraParameter("pisw", "true");

it doesn't help

maximilianbuck commented 1 week ago

@soqman could you please share a device log of as session where you reproduce the issue with our verbose logging enabled?

maximilianbuck commented 1 week ago

@soqman that looks to be a Unity log, sorry if it wasn't clear but I'm looking for the native device log, ie from Console or Xcode. Could you share that as well?

soqman commented 1 week ago

Console.txt

6.4.4

maximilianbuck commented 1 week ago

@soqman we found an issue with the fix and will have to make an update to our SDK. I will circle back when that gets released. Just fyi that log that doesn't have any information from our native logging, if I had to guess our SDKs verbose logging is not enabled.

soqman commented 1 week ago

I don't have xcode handy and have had some difficulties. I apologize for that. I'm pretty sure Verbose Logging is enabled in the config file. However, I have not called it through xcode. If there is a difference, it would be worth clarifying what the checkbox is for. I would appreciate any suggestions on how to avoid this bug in the current version.

maximilianbuck commented 4 days ago

Unfortunately there is no local way to get around this at this time. We'll need the next SDK release to address the issue.