I have noticed that, if ios app is open and foregrounded origin == received
and if open and BACKGROUNDED origin is still == received
The thing is,
if the app is backgrounded and the user clicks the notification I want to redirect to the specific route,
but if the app is foregrounded and the user is just fooling around, I want to display some sort of notification at the top of the screen.
How to differentiate one from another?