Stop receiving the push notification when the application is open on Android

Is it possible to stop receiving the push notification when the application is open?
I use the expo service.
expo sdk 33
I want the same behavior on Android as on iOS.
Please, I have searched everywhere for a solution and I can not find it.
Thank you!

Hi @jorgem! This post asks the same question- there’s a solution in the comments!

1 Like

Thanks for your answer @charliecruzan, I will study how to do it with AppState.
But I have another question: How would it be possible to eliminate push notifications that have already arrived and have not yet been seen and when you enter the application?
What I want is that when you enter the app is for a notification or not, all notifications that are in the inbox are deleted.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.