customerio / customerio-android

This is the official Customer.io SDK for Android.
MIT License
12 stars 9 forks source link

In-App Message created from a non-UI thread on Android #133

Closed petitTrung closed 1 year ago

petitTrung commented 2 years ago

Version(s) of SDK bug appears: 3.0.0-beta.1

Current Behavior

I have tested in-app messages by sending some test to my phone : The message is displayed in my test, but I got a dangerous error message on the Logcat

Screenshot 2022-09-19 at 16 37 36

It seems that the Banner (or Dialog) is created from a non-UI Thread

Steps to Reproduce

Phone Model : OnePlus 5T - Android 10 Huawei P20 - Android 10 OnePlus 6T - Android 11

App Target :

Send an in-app Example Banner or Example Welcome

Screenshot 2022-09-19 at 16 40 38
    const val targetSdkVersion = 32
    const val compileSdkVersion = 32

Expected Behavior

The Overlay should be created from UI Thread

Shahroz16 commented 2 years ago

Hey @petitTrung, thanks for bringing this to our attention. We are working on a fix and will be rolling it out soon.

Shahroz16 commented 1 year ago

Hey @petitTrung, closing the loop here. I believe this was fixed and rolled out but the issue never got closed. Feel free to reopen if you still face it.