-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backing out of a UWP mobile app quits the apps instead of suspending #853
Comments
Not sure if this is related so forgive me if this looks like a hijack, but I noticed in my xamarin forms app, when trying out things on my android phone in debug mode, if I start up the app, and hit the back button from the main page (navigating on initiailization to masterdetailpage/navpage/mainpage), I get a message saying the app has stopped. When opening the app again, I get the splash screen, ie the app closed instead of suspending. In the process of trying a few things like using IConfirmNavigation CanNavigate returning false on the master and nav pages, but this probably isnt the solution. |
@kyse Prism for XF has a completely different implementation of the nav stack based on the platform nav, so probably unrelated to this one. |
We should see what the guidance in Windows 10 is, it's not so strict anymore as it was in Windows 8/8.1. |
Maybe I can help Windows Phone 8
The platform assumed your application had only one frame and would auto-wire up the Windows Phone 8.1
Behavior varied if you wrote a Silverlight app or a Universal app. Silverlight apps continued to behave like Windows Phone 8. Universal apps also behaved like Windows 8 apps, except for the optional Windows 10 Mobile on Phone
UWP requires the developer to handle the back button. There is no auto-wire up for any frame, as the platform makes no assumptions about the app. If ExtendedExecutionSession
With Windows 10 1511 (November Update/Threshold 2/10586) the platform introduced extended the Template 10In Template 10, we automatically enter every app into an Unspecified extended session when it is launched and automatically request a SaveDate session when it is suspended. This provides a far more WPF-like life-cycle to an app. More importantly, this does not short circuit the nature of UWP since extended session still takes into account user behavior and system resources based on internal heuristics the developer cannot manipulate. And that's how it works. |
Thanks for the info @JerryNixon. I'll try to have a look at this during the final week of the year. |
Closing as Prism for UWP is no longer applicatible to the current version of Windows. We are aligning with Template 10. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Package info
Repro steps
Open an app with Prism, click the back button.
Expected: The app is suspended and can be resumed by opening it.
Actual: The app is shut down completely. Opening it starts it from scratch.
The text was updated successfully, but these errors were encountered: