adenearnshaw / AppShortcutsPlugin

AppShortcuts plugin for Xamarin and Windows
MIT License
33 stars 8 forks source link

Multiple navigation stacks #28

Closed FranRDev closed 4 years ago

FranRDev commented 4 years ago

At least on Android, every time a shortcut is pressed, with the application in memory, the constructor is initialized again with a new navigation stack. Then the shortcut page opens, but if I go back, it goes back to the previous navigation stack.

Is there a way to remove the old navigation stack? Or add the shortcut page to the existing stack?

Thanks and regards.

FranRDev commented 4 years ago

It hasn't happened in iOS, it doesn't go back through the constructor if the application is in memory. Don't create more navigations stacks.

FranRDev commented 4 years ago

This has saved me: https://stackoverflow.com/questions/44826664/xamarin-android-app-resumed-by-shortcut-intent-master-and-detail-must-be-set-b

In MainActivity, I had to add LaunchMode = LaunchMode.SingleTask.

adenearnshaw commented 4 years ago

Thanks for the update. I was going to explore it this evening