Batch-Android-SDK icon indicating copy to clipboard operation
Batch-Android-SDK copied to clipboard

In-App Messaging not appear

Open lolucosmin opened this issue 6 months ago • 3 comments

Summary

I am usign the last version of sdk in our app and we have a issue to show the In-App Messaging dialogs. I call Batch.start(BuildConfig.BATCH_KEY) in Application with Batch.Messaging.setAutomaticMode(true). If I call Batch.Debug.startDebugActivity(this) I see the bottom banner.

The wierd thing which I see in console is this: "View class com.batch.android.messaging.view.styled.a is an AppCompat widget that can only be used with a Theme.AppCompat theme (or descendant)."

Our app is using as theme: Theme.MaterialComponents.Light.NoActionBar. I think the sdk need a update to support also this theme, right now we can not use it.

I waiting an answer, thank you.

Reproduction steps

Logs

Specifications

SDK Version

2.1.1

Installation method

Gradle dependency

Relevant development tools versions

Android targetSDK 35

Additional information

lolucosmin avatar May 26 '25 18:05 lolucosmin

Hi, thanks for the report.

We haven't been able to reproduce this issue on a sample project with Theme.MaterialComponents.Light.NoActionBar. This suggests you may have an sdk integration issue.

I invite you to contact our support team directly via live chat for personalized assistance.

Have a nice day

arnaud-roland avatar May 27 '25 08:05 arnaud-roland

@arnaud-roland Hi, the issue is inside of your SDK, after few hours I found it. I did a workaround and now is working. Tip: Your sdk cannot achor the banner at the button of the screen(activity) for few types of layouts....... So your answer was too quick and it is not a good idea to blame the developer, saying there was an integration problem.

lolucosmin avatar May 27 '25 10:05 lolucosmin

I didn't mean to blame you at all, and I apologize if that's how you feel.

We tried to reproduce the bug based on the information you provided, but without success. As per our repository guidelines, we do not handle bug issue here and encourage developers to contact our dedicated support team.

However, I'm glad you found a solution to your issue. Have a nice day.

arnaud-roland avatar May 27 '25 12:05 arnaud-roland