Navigating to a Specific Page in .NET MAUI Blazor Using Shiny.Push Notifications #1511
-
Hi, first I want to thank you for the great work that has been done on this library. Saved me a lot of hassle and time. SetupPush Delegate Implementation:
Main Page Code:MainPage.xaml.cs
MainPage.xaml:
ProblemThe NavigationManager does not work outside of Blazor components. This limitation is affecting my push notification handling in MyPushDelegate, preventing navigation to the desired Blazor page upon receiving and interacting with a notification. Additionally, I've set LaunchMode = LaunchMode.SingleTop in my Android MainActivity to address an issue where the app sometimes gets stuck on the splash screen after clicking a push notification. Environment Details
QuestionsNavigating from Push Notifications: What is the best approach to navigate to a specific Blazor page upon receiving a push notification in a .NET MAUI Blazor app? Handling Badge Numbers: How can I control and increment badge numbers in the OnReceived method? Will there be any conflicts using Shiny.Push and Shiny.Push.FirebaseMessaging alongside Plugin.Firebase.Crashlytics? Additional Information AppDelegate.cs
MainActivity.cs
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I stay out of this because everyone has different requirements. The navigation manager from blazor is not going to work inside of a push delegate though... of that much I'm sure
This has to be part of the payload on iOS. On Android, there are hacks for badge icons
Likely - yes.
Use Sentry |
Beta Was this translation helpful? Give feedback.
I stay out of this because everyone has different requirements. The navigation manager from blazor is not going to work inside of a push delegate though... of that much I'm sure
This has to be part of the payload on iOS. On Android, there are hacks for badge icons
Likely - yes.
U…