iOS Question Release mode problem/question

cwt

Active Member
Licensed User
Longtime User
I just compiled and installed my iOS app for the first time in release mode - all went well and the app runs fine. But, my app's first page is the login page and then after the login, the user is taken to the main menu. The login page showed the first time I ran the app in release mode but that was the only time the login page showed. With each subsequent run of the app, the app goes directly to the main menu. I suppose this is because on the login page I use this code "B4XPages.ShowPageAndRemovePreviousPages("Main Menu")" to go to the main menu. I had thought when I exited the app by pressing the "Home" button on my test iPhone, the app was killed but it is apparently still running in the background.

Is there a workaround or fix for this or do I need to allow the user to go back from the main menu to the login page - which I don't really want to do?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
I had thought when I exited the app by pressing the "Home" button on my test iPhone, the app was killed
No. It moves to the background. It might be killed at some point.

You can handle the B4XPage_Background event to log the user out.
I'm not sure that logging the user out immediately is the best idea.
 
Upvote 0
Top