Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Klarna On Site Messaging badge not rendered sometimes #7

Open
vdanylov opened this issue Aug 30, 2024 · 1 comment
Open

Klarna On Site Messaging badge not rendered sometimes #7

vdanylov opened this issue Aug 30, 2024 · 1 comment

Comments

@vdanylov
Copy link

Is your feature request related to a problem? Please describe.
Hello, I'm following this documentation:
https://docs.klarna.com/conversion-boosters/on-site-messaging/integrate-on-site-messaging/on-site-messaging-for-mobile/on-site-messaging-for-android/
to integrate the On Site Messaging to my app for android, for IOS it works fine. But for android some badge is not render.
When badges is not rendered I got next error in Android Studio Logcat:

ConfigManager: Failed to apply config overrides, exception: Attempt to invoke virtual method 'com.klarna.mobile.sdk.core.io.configuration.model.config.ConfigOverrides com.klarna.mobile.sdk.core.io.configuration.model.config.ConfigOverrides.getApplicableOverrides(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, com.klarna.mobile.sdk.core.Integration)' on a null object reference

I've tried different SDK versions (2.4.1, 2.6.19, 2.6.22), and problem is reproducible for each.

Describe the solution you'd like
How to solve this, not digging in SDK implementation

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
I'm using it in my react native app, through the bridge.

Thank You

@vitdanylov
Copy link

vitdanylov commented Sep 3, 2024

Had an additional debug session and found next issue in network activity:
"stack-trace": "com.klarna.mobile.sdk.core.natives.network.interceptors.SDKHttpHeaderInterceptor.intercept(SDKHttpHeaderInterceptor.kt:7)\nokhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)\nokhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)\nokhttp3.internal.connection.RealCall.execute(RealCall.kt:154)\ncom.klarna.mobile.sdk.core.analytics.AnalyticLogger.c(AnalyticLogger.kt:270)\ncom.klarna.mobile.sdk.core.analytics.AnalyticLogger.b(AnalyticLogger.kt:23)\ncom.klarna.mobile.sdk.core.analytics.AnalyticLogger.b(AnalyticLogger.kt:1)\ncom.klarna.mobile.sdk.core.analytics.AnalyticLogger$logEvent$1.invokeSuspend(AnalyticLogger.kt:17)\nkotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)\nkotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)\nkotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)\nkotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103)\nkotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)\nkotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)\nkotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)\nkotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)\n",
"threads": "DefaultDispatcher-worker-21", "transport": "OKHTTP3", "url": "https://eu.klarnaevt.com/v1/in-app/inappsdk-android-v2.6.19/internalError?iid\u003d1016278127\u0026sid\u003d9ccd3098-237e-4ea6-a713-2b321e677df7\u0026timestamp\u003d1725368163.720000"
not sure why its happening is there any proper way to handle this error?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants