Closed TersaCA closed 1 month ago
Share the solution please. People often tend to use old versions of the template or the library.
You can find the answer here on how this can be solved: https://github.com/dotnet/maui/issues/18692#issuecomment-2016524388
I believe everything is update. VS2022 was update yesterday. I uninstalled and reinstalled the shiny project template today and generated a new test project before posting the issue.
@TersaCA
I was about to comment that we are also seeing this issue.
However I did some searching and came across others with a similar issue and a reply from @aritchie. Implementing his suggestion of setting an explicit LaunchActivityFlag worked for us,
MAUI is talking about how they want to shift those flags around. I defaulted the flags to SingleTop in dev, but I'm not ready to release that right now
Please stick with the workaround listed above. You'll likely need to hard set this if MAUI shifts the flags in any case.
Component/Nuget
Notifications (Shiny.Notifications)
What operating system(s) are effected?
Version(s) of Operation Systems
Andriod 14.0 api 34
Hosting Model
Steps To Reproduce
Expected Behavior
clicking on app should open or focus app
Actual Behavior
clicking causes exception
Exception or Log output
System.InvalidOperationException: 'This window is already associated with an active Activity (MauiShinyJobNotify.MainActivity). Please override CreateWindow on MauiShinyJobNotify.App to add support for multiple activities https://aka.ms/maui-docs-create-window or set the LaunchMode to SingleTop on MauiShinyJobNotify.MainActivity.'
Code Sample
Code of Conduct