Replies: 1 comment 5 replies
-
I don't do anything in App.OnStart. I push everything to a startup page where I have a full nav stack and the ability to control history properly. OnEntry should only be pushing an event or setting some variable for startup to deal with. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is not about an issue with Shiny but it is related to things I am doing with my app that Shiny helps me with and I thought I'd ask the Shiny community a question.
@aritchie if this is not what you want in the Q&A please just close it.
Do you simply restart your app when a Notification comes in?
The standard approach that I have seen for XF apps is the following. In your Xamarin.Forms.Application OnStart, initialise your Navigation Page/Manager Stack and load your Main/Home View or ViewModel. We are currently using FreshMVVM although trying to migrate to Prism for MAUI.
Ours looks something like this.
What this standard approach seems to mean in relation to Notifications is that when your app is resumed from a Notifcation tap this code fires and users are taken back to Main/Home every time no matter where they were in the app.
Is that what other people are doing?
I know that we could do some extra work in Shiny's PushDelgate.OnEntry to move the user onwards to a notification specfic View but the Navigation stack would be still have been reset to Home/Main first.
Beta Was this translation helpful? Give feedback.
All reactions