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 |
Answered by
bryanp-ramosoil
Jan 30, 2024
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" |
1 reply
Answer selected by
tf2works
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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