We are facing a strange issue. Not sure if it is design flaw of the existing application. Your help/suggestion is appreciated.
We have a Xamarin.forms app. Targeted both for iOS and Android.
Problem is coming mainly in Android app.
Application flow:
- once we logout from the application, app opens an logout activity and delete user info and other data.
- opens a new activity for login which contains client SSO implementation
- on successful login, app is setting user info and fetch data from web service.
- then it calls LoadApplication method so that flow comes back in main application
Now if user perform logout/login several times, its opening a new application instance by calling LoadApplication method and then displaying home screen
So when user is tapping back button in home page, app is not closing and displays previous instance of same application. User need to press back button several times (depending how many time user perform logout-login).
Is there any goodway to stop this? Can we close current instance of the application before LoadApplication being called?
Stuck for a long time.