Hi,
We are implementing Push Notification in our app. For iOS, we didn't see much challenges, but with Android, stuck at navigation.
When click on notification alert, need to navigate to MainPage as shown in below code).
It is calling MainPage, but, not initializing ViewModel (MainPageViewModel).
I am not very sure, is this the right way of navigating from Android project.
Similar code worked fine in iOS.
Any hints please?
protected override void OnNewIntent(Intent intent)
{
base.OnNewIntent(intent);
Intent = intent;
var page = new NavigationPage(new MainPage());
Prism.PrismApplicationBase.Current.MainPage = page;
}