Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Horizontal view does not work with in app messages #364

Open
Denis306 opened this issue Sep 8, 2024 · 1 comment
Open

Horizontal view does not work with in app messages #364

Denis306 opened this issue Sep 8, 2024 · 1 comment
Assignees

Comments

@Denis306
Copy link

Denis306 commented Sep 8, 2024

When turning the phone to horizontal view, the push notification does not change like it is supposed to do. @GustavoTCh please investigate and let us know why this is not working.

Image

@Denis306 Denis306 converted this from a draft issue Sep 8, 2024
@GustavoTCh
Copy link
Contributor

GustavoTCh commented Sep 9, 2024

@Denis306, my report:

Issue: Firebase In-App Messaging Card Orientation Bug

In iOS, Firebase In-App Messages display correctly in both portrait and landscape modes. However, on Android, the card only respects the orientation at the time of app launch or when returning from background mode. Changing the orientation while the app is open does not adjust the card display. This issue was reported in 2022 (GitHub Issue #9936) and remains unresolved. I attempted several workarounds, but none succeeded. We may need to wait for an official fix from the Flutter-Firebase team.

Potential Solution: Configure the Android app to support portrait mode only.

Details: I attempted other configuration options and researched further, discovering that Flutter does not restart the activity when the orientation changes. This behavior is intended for optimization during rotation. However, the workaround I tried did not resolve the issue.

The following images show the app starting in landscape mode, where the popup displays correctly. However, when switching to portrait mode, the window layout becomes incorrect.

Image

Image

@Denis306 Denis306 moved this from In the Live Version to On Dev/Internal - QA in Stadtnavi App Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: On Dev/Internal - QA
Development

No branches or pull requests

2 participants