Hey guys,
I integrated Firebase Cloud Messaging to receive Push notifications on Android and iOS. I also integrated Deep Links and can now read the Key Value Pair sent with the notification to open a specific page in my application. Unfortunately, when the app is already active when the Notification arrives, The page gets opened automatically without showing the notification itself.
As a workaround I tried to test with Application.isFocused if the App is already in the focus and show a pop up alert before opening the Deep Link. This brought my application to crash because also when the push notification arrives with the app not actively used Application.isFocused returns true.
Does anyone have an idea if there is a way to determine whethere the app is open or closed?
Do I need a plugin with native code for this maybe?
↧