firebase / firebase/firebase-android-sdk

AppCompat Widget Error in Firebase In-App Messaging SDK

Open
#6,356 7 comments 0 reactions 0 assignees View on GitHub
api: inappmessaging
Dominant language
Java
Stars
2.6k
Forks
710
Avg merge
2d 23h
Merged PRs (30d)
34

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.