Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[Bug]: StrictMode in In-app messages #51

Open
SolaBe opened this issue Jan 13, 2025 · 1 comment
Open

[Bug]: StrictMode in In-app messages #51

SolaBe opened this issue Jan 13, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@SolaBe
Copy link

SolaBe commented Jan 13, 2025

Braze Android SDK Version

34.0.0

Steps To Reproduce

Incoming html in-app messages on a device

Expected Behavior

Not have an alert about strict mode

Actual Incorrect Behavior

Recceiving StrictMode DiskReadViolation alert in logcat

Verbose Logs

android.os.strictmode.DiskReadViolation
	at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1659)
	at libcore.io.BlockGuardOs.access(BlockGuardOs.java:74)
	at libcore.io.ForwardingOs.access(ForwardingOs.java:131)
	at android.app.ActivityThread$AndroidOs.access(ActivityThread.java:7747)
	at java.io.UnixFileSystem.checkAccess(UnixFileSystem.java:281)
	at java.io.File.exists(File.java:813)
	at android.app.ContextImpl.ensurePrivateDirExists(ContextImpl.java:751)
	at android.app.ContextImpl.ensurePrivateCacheDirExists(ContextImpl.java:747)
	at android.app.ContextImpl.getCacheDir(ContextImpl.java:858)
	at android.content.ContextWrapper.getCacheDir(ContextWrapper.java:301)
	at com.braze.ui.BrazeWebViewClient.<init>(BrazeWebViewClient.kt:70)
	at com.braze.ui.inappmessage.utils.InAppMessageWebViewClient.<init>(InAppMessageWebViewClient.kt:22)
	at com.braze.ui.inappmessage.utils.InAppMessageWebViewClient.<init>(InAppMessageWebViewClient.kt:17)
	at com.braze.ui.inappmessage.factories.DefaultInAppMessageHtmlViewFactory.createInAppMessageView(DefaultInAppMessageHtmlViewFactory.kt:45)
	at com.braze.ui.inappmessage.factories.DefaultInAppMessageHtmlViewFactory.createInAppMessageView(DefaultInAppMessageHtmlViewFactory.kt:22)
	at com.braze.ui.inappmessage.BrazeInAppMessageManager.displayInAppMessage(BrazeInAppMessageManager.kt:559)
	at com.braze.ui.inappmessage.utils.BackgroundInAppMessagePreparer$displayPreparedInAppMessage$2.invokeSuspend(BackgroundInAppMessagePreparer.kt:276)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
	at android.os.Handler.handleCallback(Handler.java:938)
	at android.os.Handler.dispatchMessage(Handler.java:99)

Additional Information

No response

@SolaBe SolaBe added the bug Something isn't working label Jan 13, 2025
@bryanlogan
Copy link
Contributor

Thanks. We have a fix made and it should be out in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants