vollzeitemoOriginal post
Rank 1: Thread
Hi, I am currently struggling with keeping the created session alive when closing the app completely on the iPhone.
I tried different things, like storing credentials in the keychain, that does not work for me. If the app is getting closed, the first screen when opening the app again is the Welcome page and the user is logged out. Any ideas on that?
Summary
User is having trouble keeping session alive when closing app completely on iPhone. Tried storing credentials in keychain but doesn't work. Looking for ideas on how to solve this issue.
Solution: If using Appwrite SDK, session persistence is handled automatically. Call `account.get()` on app start to check if there's a session. If it throws an exception, redirect user to log in page.