You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Android Studio version: Android Studio Meerkat | 2024.3.1 Canary
Firebase Component: InAppMessaging
Component version: Bom33.7.0
Expected behavior:
• The FIAM message should be dismissed when the back gesture is performed.
Observed behavior:
• The FIAM message is not dismissed when the back gesture is performed.
Steps to reproduce:
1. Enable android:enableOnBackInvokedCallback in your app’s AndroidManifest.xml.
2. Display a Firebase In-App Messaging (FIAM) message.
3. Attempt to dismiss the FIAM message using the back gesture.
Relevant Code:
It seems the issue may be related to the BackButtonHandler implementation in the Firebase In-App Messaging SDK. Specifically, dispatchKeyEvent in BackButtonHandler might not be invoked when android:enableOnBackInvokedCallback is set to true, as the back gesture bypasses the traditional KeyEvent.KEYCODE_BACK handling.
Hi @kk-777-1127, thank you for reaching out. I was able to reproduce the issue. I'll raise this to our engineers and see what we can do here. I'll get back to you once I hear back from them. Thanks!
The FiamFrameLayout component does not have direct knowledge of the associated Activity. This makes it challenging to implement features that rely on Activity, such as supporting predictive back gestures using OnBackInvokedDispatcher (introduced in Android 13).
Expected behavior:
• The FIAM message should be dismissed when the back gesture is performed.
Observed behavior:
• The FIAM message is not dismissed when the back gesture is performed.
Steps to reproduce:
Relevant Code:
It seems the issue may be related to the BackButtonHandler implementation in the Firebase In-App Messaging SDK. Specifically, dispatchKeyEvent in BackButtonHandler might not be invoked when android:enableOnBackInvokedCallback is set to true, as the back gesture bypasses the traditional KeyEvent.KEYCODE_BACK handling.
firebase-android-sdk/firebase-inappmessaging-display/src/main/java/com/google/firebase/inappmessaging/display/internal/layout/util/BackButtonHandler.java
Line 23 in 377edcc
The text was updated successfully, but these errors were encountered: