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

Problem with setNotificationWillShowInForegroundHandler #501

Closed
hugoyair opened this issue Nov 1, 2021 · 4 comments
Closed

Problem with setNotificationWillShowInForegroundHandler #501

hugoyair opened this issue Nov 1, 2021 · 4 comments

Comments

@hugoyair
Copy link

hugoyair commented Nov 1, 2021

One signal_flutter version: 3.2.3

Description:
I´m using one signal and everything is ok, but I was wondering why sometimes when I´m into an application, notification show it and enter to :

OneSignal.shared.setNotificationOpenedHandler()

When It should enter to:

setNotificationWillShowInForegroundHandler()

It sometimes fail not always, I mean notification come always.

@jkasten2
Copy link
Member

jkasten2 commented Nov 9, 2021

@hugoyair Thanks for reporting. Could share a step by step of reproducing the issue? It isn't clear to me if the issue is with setNotificationOpenedHandler or setNotificationWillShowInForegroundHandler in your app.

Could you also let us know if the is an issue on Android or iOS? Also please note the Android / iOS version and device model as well.

@hugoyair
Copy link
Author

hugoyair commented Nov 9, 2021

I´m sorry I don´t speak English, I said that I have a problem with setNotificationWillShowInForegroundHandler() when my phone app is focus (into the app) (foreground), should listen the handler (setNotificationWillShowInForegroundHandler()) but it doesn´t enter to the handler. But it fails sometimes, not always.

@hugoyair
Copy link
Author

hugoyair commented Nov 9, 2021

Android 10 versión
Huawei p40 lite
Huawei p30 lite
Xiaomi redmi note 9

@nan-li
Copy link
Contributor

nan-li commented Nov 18, 2021

Hi @hugoyair, I see you posted a lot of details at #509 so I will close this for now and follow up on the other issue.

@nan-li nan-li closed this as completed Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants