I am fairly new to iPhone app development. I'm building an app that has multiple views initially, it starts with a view for authentication and then loads view according to user interaction. When I create and run an app - it shows the screen "Default.png" for the first time and then shows the first view where I do my authentication process (typing user-id, password and a web service) and then credentials Verified takes me to the next scene. When I close the app in this situation in the simulator and open it again, then I am looking at the situation in which I had closed my app. But that's what I want. When I relaunch the app, I should be able to show "DEfault.png" and the screen and then show my initial authentication view. Can you help me on this? Thanks
It seems that the problem you are trying to solve is that Your authenticated session may expire The application has been suspended and you will have to log in again. Although proposed solutions (true to UIApplicationExistsOnSuspend setting) I think that you should consider a different approach.
Apple recommends that you look like phone to support multitasking. That's why, by default, your app will stop and resume instead of exiting, and will relaunch. In your case, however, you may need to re-login to resume the session. I offer you an alternative solution:
- Credential cache (i.e. username and password ) And when necessary, use quietly to start the session again if the back-end supports this.
- After the session is detected, the session has been completed and to inform the user that the session has expired and ask to log in again. This problem will also address if the user keeps the app active after the session expires.
Both of these approaches should improve and improve the app performance in app applicability guidelines. / P>
Comments
Post a Comment