OneSignal-Flutter-SDK icon indicating copy to clipboard operation
OneSignal-Flutter-SDK copied to clipboard

[Bug]: addForegroundWillDisplayListener event does not work if run app in Android landscape orientation

Open VisualMafia opened this issue 1 year ago • 2 comments

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 avatar Oct 04 '23 10:10 VisualMafia

@VisualMafia Thank you for reporting could you provide the verbose log when the device receives the notification?

emawby avatar Oct 06 '23 19:10 emawby

Hi, I will try. The bug is floating, I see that it is not always there.

VisualMafia avatar Oct 09 '23 12:10 VisualMafia