Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to restart the application using Xamarin.Forms

If I manage a session (any concept of a session is suitable) in my app, and I deem that the session has expired, for whatever reason, how do I programmatically restart the application, universally for iOS, Android, WinPhone?

like image 649
Robert Achmann Avatar asked Nov 27 '14 16:11

Robert Achmann


1 Answers

You can't explicitly restart an App - iOS specifically prohibits this, and there is no universal mechanism to do this on other platforms. If you determine that the session has expired, you will need to prompt the user to login, and do any initialization manually.

like image 77
Jason Avatar answered Sep 23 '22 16:09

Jason