Shell Navigation performs twice on the same route on iOS


I just implemented the reception of push notifications on .NET MAUI 7 using Shiny.NET. Everything works very smooth. When I tap on the notification, I am supposed to follow a specific route to get to the wanted page. This particular feature works perfectly on Android.
On iOS I am getting two different behaviors:

  • when the app is in foreground, if I tap on the banner, the shell will navigate smoothly to the wanted route with no issue.
  • when the app is in a terminated state, tapping on the notification would fire a check to see whether the authentication token I have is still valuable and then using Shell.Current.GoToAsync(nameof(MyRoute), dictionaryArgs) will try to navigate to the wanted route.

The latter of this cases does not work as expected since MyRoute page is piled on another MyRoute page causing a doubled page for the user. In fact, to go back to the main page he would be compelled to go back twice.
Notice that this happens on iOS only.

Do you have any suggestion on how to solve this weird behavior?

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img