How to open my .NET MAUI Android app open when i tap its notification entry

John Norton 66 Reputation points
2022-11-18T14:01:29.06+00:00

I followed this great article and created my foreground service but I cannot tap the notifications entry and have it open my app. What am I missing?

Article link

how-to-create-an-android-foreground-service-in-maui

Developer technologies .NET .NET MAUI
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2022-11-21T07:33:47.263+00:00

    Hello,

    How to open my .NET MAUI Android app open when i tap its notification entry

    You need to open a specific activity when click your notification, you need to create a PendingIntent object and associate the PendingIntent with the notification. For more details, you can refer to this document. Starting an activity from a notification

    Best Regards,

    Leon Lu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.