Closed UzverNumber47 closed 2 months ago
Hi @UzverNumber47 - this is intended behavior. New ad units take 30-60 minutes before they can be used to load ads but I can see how this would cause confusion based on the error message. We can update the error message to specify this.
What else I have found.
The app will crash if you
It takes around 5 minutes for a plugin or sdk to understand that an Ad Unit is disabled and then CRASH your app.
And I still don't understand why not suppress the exception and print a stacktrace to console like you already do here
catch ( JSONException ignored ) { }
Thanks for the feedback - we'll fix this in our next SDK release.
FYI - our SDK only throws these exceptions for debug builds. Release builds will not crash.
Thank you, can't wait to test it out :)
Hi @UzverNumber47 - we just released SDK 12.3.0 which fixes the crash you raised above. Our SDK will now fire the didFailToLoad
callback instead of throwing an exception
MAX Plugin Version
1.1.4
Cordova Version
12.0.1
Device/Platform Info
Android 12
Current Behavior
Expected Behavior
Not to crash an app when an ad id is invalid or disabled.
Doing nothing is a much better option :)
How to Reproduce
Create a NEW add unit id (I used interstitial). IMPORTANT!! Everything works well for old ids Try to load an ad in the app.
Wait around 10 minutes.
App crashes.
Additional Info
No response