Applovin force close!

Hi guys,

Is anyone else experiencing force closes on Android with the Applovin plugin?

Whenever a user presses a button that triggers an ad after the user minimized the app and reopens it using the background app opener on Android, it force closes. I’m not doing anything special with the code, so I doubt that’s an issue. I use the standard “applovin.show()” after I verified that an ad is loaded. It works perfectly fine when the app is never minimized.

Does anyone have suggestions on how to fix this?

@bramvbilsen

I can’t replicate the issue. The app will simply ignore any call to show() since the previously loaded ad became invalidated.

I checked the code, and as soon as the app is backgrounded, any loaded ads are invalidated. This means that any call to show() after the app becomes active again will be ignored until a new ad is loaded. 

Since you get a crash, there will be information in the device logcat which explains why the app force closed. To be able to help you with this issue I’d appreciate if you could post the device logcat at the time of the crash.

Hi ingemar_cl
The logcat didn’t really help me further because a not loaded app should not crash the app so I think that’s why logcat didn’t catch that. I’ll try out to load the ad when the user reopens the game and will let you know if it fixed my issue :slight_smile:

@bramvbilsen

I can’t replicate the issue. The app will simply ignore any call to show() since the previously loaded ad became invalidated.

I checked the code, and as soon as the app is backgrounded, any loaded ads are invalidated. This means that any call to show() after the app becomes active again will be ignored until a new ad is loaded. 

Since you get a crash, there will be information in the device logcat which explains why the app force closed. To be able to help you with this issue I’d appreciate if you could post the device logcat at the time of the crash.

Hi ingemar_cl
The logcat didn’t really help me further because a not loaded app should not crash the app so I think that’s why logcat didn’t catch that. I’ll try out to load the ad when the user reopens the game and will let you know if it fixed my issue :slight_smile: