'Full Screen Notification in Android

I am back with a new problem. Now, I am facing a problem is that I am creating an app that runs as foreground using Foreground Services. Now I want the app to start (launch) a new activity or fragment when the app receives an FCM (Firebase Cloud Messaging) notification. I have followed this link :please check this link and then I am confused how to integrate the "incoming call intent(see the link example..please)" into the foreground service. Please tell me. I am literally stuck for days now and could not find a solution that could explain me what to do.



Solution 1:[1]

it will trigger only when you/user click on Notification

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Vikas