Closed SohelKabir closed 1 year ago
@SohelKabir - What is the crash you are experiencing?
@thomasmso there is no errors showing when it crashes. I also checked our crashlytics dashboard in firebase, did not see any crash report. Crash happens only I add above code in our code base.
@SohelKabir , has AppLovinMAX been initialized? Can you use AppLovinMAX.isInitialized()
to verify the initialization before loading the ads?
I have solved the problem, it was problem with this statement,
if (AppLovinMAX.isInterstitialReady(INTERSTITIAL_AD_UNIT_ID)) {
AppLovinMAX.showInterstitial(INTERSTITIAL_AD_UNIT_ID);
}
moving this "if" statement inside the eventlistener "OnInterstitialLoadedEvent" block solved the crashing issue.
@alhiwatan - we should probably still not crashed if our APIs are used incorrectly as above
Added guard for accessing the MAX components before the SDK initialization.
MAX Module Version
4.0.0
React Native Version
0.63.3
Device/Platform Info
Android 12
Current Behavior
When i add the code to my app after installing applovin sdk to my react native project it crashes without any error.
The code i have placed in one of my screen which is a react component.
Expected Behavior
No response
How to Reproduce
Just install the latest sdk and add the code to any component.
Additional Info
No response