OneSignal-Flutter-SDK
OneSignal-Flutter-SDK copied to clipboard
[Bug]: addForegroundWillDisplayListener event does not work if run app in Android landscape orientation
What happened?
If you open an application in Android in landscape orientation, push notifications come on top of the application; the addForegroundWillDisplayListener event does not work. Library version 5.0.2. But the problem still existed in 3 versions.
Steps to reproduce?
1. Install app and run;
2. Send push to app;
3. Push received, and the push will arrive with the same behavior as if the application was closed or in the background.
What did you expect to happen?
The push should not have been visible and addForegroundWillDisplayListener should have worked.
OneSignal Flutter SDK version
5.0.2
Which platform(s) are affected?
- [ ] iOS
- [X] Android
Relevant log output
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
@VisualMafia Thank you for reporting could you provide the verbose log when the device receives the notification?
Hi, I will try. The bug is floating, I see that it is not always there.