Open Activity When FCM notification received without user interaction

conrado.torres@inovaweb.com.mx 0 Reputation points
2024-04-13T07:53:29.6666667+00:00

0

I am working on a project. The project requirement is that, when FCM notification arrives a specific activity opens without user interaction. This means I don't want to open the activity by notification clicking instead I want to open the activity as soon as the notification arrives. When my app is foreground it works. But When My app is in the background or kill state, it doesn't work. I am sharing my FMC code below. What I do now, to solve this issue?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,500 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.