Option to not open the app when notification is selected / clicked / tapped #469
-
Hi, The use case issue is that if the application is already running on Windows, and the notification is selected, the application will reopened. Plugin version : 11.0.1-preview01 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I had the same problem. You need to tap into the LifecycleEvents. Here's what I did to get around the issue. I'm pretty sure that's all you will need. Sorry but I couldn't find the original post where I found this solution. Hope this helps. Add this to MauiProgram.cs
Add 2 new class to Platforms -> Windows "AppActionsHelper.cs"
"WindowsLifecycleExtensions.cs"
|
Beta Was this translation helpful? Give feedback.
I had the same problem. You need to tap into the LifecycleEvents. Here's what I did to get around the issue. I'm pretty sure that's all you will need. Sorry but I couldn't find the original post where I found this solution. Hope this helps.
Add this to MauiProgram.cs