-
I am still in the process of migrating from FreshMVVM and Xamarin Forms and defiently still don't fully understand Navigation, Prism and MAUI. Our app responds to 4 or 5 different "types" of PushNotification. The logic for how to deal with those is triggered from the Shiny PushDelegate. Each Action has a number of dependencies and the one I am currently trying to debug needs an INavigationService
The call to If I switch away from trying to use the injected INavigationService and instead publish an event that I subscribe to in an already loaded ViewModel the navigation works exactly as I expect and the stack is maintained. What is the difference between using the INavigationService that is getting injected into my |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The NavigationService is not a Singleton Service. It is a scoped service that is created for EACH Page in the application. I believe @aritchie has a solution for this... perhaps he can elaborate on the way to handle this in Shiny. |
Beta Was this translation helpful? Give feedback.
The NavigationService is not a Singleton Service. It is a scoped service that is created for EACH Page in the application. I believe @aritchie has a solution for this... perhaps he can elaborate on the way to handle this in Shiny.