You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to redirect to a specific page of the app that is in a webview when opening a notification, both with the app in the background and in the foreground?
I know that the notification that is opened with the app in the foreground is handled with the CrossFirebasePushNotification.Current.OnNotificationReceived method. In this method I can get the link of the notification body but I don't know how to reload the webview.
When the notification opens with the app in the background, it reaches the OnCreate method of the MainActivity, in which I don't know how to obtain the body of the notification that contains the link to navigate to, but from here the webview can be reached correctly.
notificacion on foreground
CrossFirebasePushNotification.Current.OnNotificationReceived += (s, p) =>
{
if (p.Data.ContainsKey("body"))
{
string link = p.Data["body"].ToString();
GlobalElements.direccionURL = link;
string pagina = App.Current.MainPage.Navigation.NavigationStack.LastOrDefault().ToString();
....
}
};
Is it possible to redirect to a specific page of the app that is in a webview when opening a notification, both with the app in the background and in the foreground?
I know that the notification that is opened with the app in the foreground is handled with the CrossFirebasePushNotification.Current.OnNotificationReceived method. In this method I can get the link of the notification body but I don't know how to reload the webview.
When the notification opens with the app in the background, it reaches the OnCreate method of the MainActivity, in which I don't know how to obtain the body of the notification that contains the link to navigate to, but from here the webview can be reached correctly.
notificacion on foreground
notificacion on background
I'm not sure how to get to the specific page of the webview
Thanks for the help.
The text was updated successfully, but these errors were encountered: