Skip to content

AppCompat Widget Error in Firebase In-App Messaging SDK #6356

Open
@MoatzAtteya

Description

@MoatzAtteya

I'm encountering an error when attempting to display in-app messages with images using the Firebase In-App Messaging SDK. The error message is:
View class com.google.firebase.inappmessaging.display.internal.ResizableImageView is an AppCompat widget that can only be used with a Theme.AppCompat theme (or descendant).
The app currently uses a Material Design theme (Theme.MaterialComponents), and this error occurs when Firebase In-App Messaging attempts to display an image-based message, I have also tried to set the theme to AppCompat and nothing different.

Steps to reproduce the behavior:

  1. Integrate Firebase In-App Messaging into an Android project.
  2. Use a Theme.MaterialComponents or a non-AppCompat theme in the app.
  3. Configure and send an in-app message with an image via the Firebase Console.
  4. Observe the error in logcat.

Environment:

  • Firebase BOM version: 33.4.0
  • Android Studio version: [Android Studio Koala | 2024.1.1 Patch 2]
  • Android device/emulator: Poco F3 android 13

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions