A user can click on push notification and open a target page like so:
if (data["myPage"] == 'Page1' || data["myPage"] == 'Page2') {
navigatorKey.currentState?.push(MaterialPageRoute(
builder: (context) => targetPage(
page: data['myPage'],
key1: data['value1'],
key2: data['value2'],
),
));
}
How can I reopen/reload the same page if the user clicks on another notification that leads to targetPage
?
With the code above, I just open a second instance of the same page.
Thank you!