You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are experiencing a crash in the Moloco adapter used in AppLovin MAX mediation in our Unity project. The crash occurs due to a ClassCastException when attempting to retrieve a value from SharedPreferences as an Integer, but it appears to have been stored as a Boolean.
FYI, we are using Google UMP (com.google.android.ump:user-messaging-platform:2.2.0) and Moloco adapter(com.applovin.mediation:moloco-adapter:3.4.0.0)
Exception and Stack Trace
Caused by java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.Integer
at android.app.SharedPreferencesImpl.getInt(SharedPreferencesImpl.java:321)
at com.moloco.sdk.publisher.privacy.MolocoPrivacyKt.gdprApplies(SourceFile:10)
at com.moloco.sdk.publisher.privacy.MolocoPrivacyKt.access$gdprApplies(SourceFile:1)
at com.moloco.sdk.publisher.privacy.MolocoPrivacy.getPrivacySettings(SourceFile:6)
at com.moloco.sdk.internal.services.bidtoken.s.getPrivacy(SourceFile:1)
at com.moloco.sdk.internal.services.bidtoken.q.<init>(SourceFile:15)
at com.moloco.sdk.internal.services.bidtoken.p$a.a(SourceFile:6)
at com.moloco.sdk.internal.services.bidtoken.m$a.a(SourceFile:4)
at com.moloco.sdk.internal.services.bidtoken.m$a.invoke(SourceFile:1)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at com.moloco.sdk.internal.services.bidtoken.m.b(SourceFile:1)
at com.moloco.sdk.internal.services.bidtoken.m.a(SourceFile:1)
at com.moloco.sdk.publisher.Moloco$bidTokenHandler$2.invoke(SourceFile:1)
at com.moloco.sdk.publisher.Moloco$bidTokenHandler$2.invoke(SourceFile:2)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at com.moloco.sdk.publisher.Moloco.getBidTokenHandler(SourceFile:1)
at com.moloco.sdk.publisher.Moloco.access$getBidTokenHandler(SourceFile:1)
at com.moloco.sdk.publisher.Moloco$getBidToken$1.invokeSuspend(SourceFile:3)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
How to Reproduce
not reproducible locally, but we see the crash on Crashlytics reports for different apps
Reproducible in the demo app?
Not Tested
Additional Info
No response
The text was updated successfully, but these errors were encountered:
Thanks for flagging this issue. Moloco can put a workaround to avoid this hassle of happening in future in one of our next updates. However this is happening because the app has a dependency which isn't following IAB specifications. As per the specification, framework is expected to be working with Ints (which the Moloco SDK expects) - InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework#340 (comment)
Thanks for your response and for considering a workaround in a future update.
Could you clarify what you mean by "the app has a dependency which isn't following IAB specifications"? When you mention "app" and "framework," are you referring to Google UMP, the Moloco SDK, or our app that integrates them?
We are using Google UMP/CMP as our consent management platform without any modifications, and as far as we know, it’s an industry-standard tool. If there's a specific integration issue on our side, we’d appreciate more details so we can investigate further.
MAX Plugin Version
8.0.1
Unity Version
2022.3.27f1
Device/Platform Info
Android
Crashes/ANRs per Day
1% of users
Percentage of Users Affected
1
First Occurrence of Crash/ANR
We are experiencing a crash in the Moloco adapter used in AppLovin MAX mediation in our Unity project. The crash occurs due to a ClassCastException when attempting to retrieve a value from SharedPreferences as an Integer, but it appears to have been stored as a Boolean.
FYI, we are using Google UMP (com.google.android.ump:user-messaging-platform:2.2.0) and Moloco adapter(com.applovin.mediation:moloco-adapter:3.4.0.0)
Exception and Stack Trace
How to Reproduce
not reproducible locally, but we see the crash on Crashlytics reports for different apps
Reproducible in the demo app?
Not Tested
Additional Info
No response
The text was updated successfully, but these errors were encountered: