DeepLink Navigation parameter into OnInitialized #2462
Unanswered
SeRgI1982
asked this question in
Xamarin.Forms
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
We use Xamarin Forms and Prism for macOS app.
I have just implemented deep linking and I would like to pass this link to navigation parameter of my first navigated page.
Currently, it is hard to do it because the first navigation is done inside OnInitialized() method (all Prism samples) which is called during instantiating App() class. Of course, I can do it by setting static property before I will initialise App() inside AppDelegate or just register an instance with this deep link into container (IPlatformInitializer.RegisterTypes) but IMO it is dirty workaround.
Is it mandatory to do first navigation inside OnInitialized method which is called during instantiating App class ?
Of course, I am talking about the case where app is not run and by registering URL scheme with my app, the operating system call the app for the first time.
Beta Was this translation helpful? Give feedback.
All reactions