iOS randomly de-authenticates user
It appears, that a lot of iOS users report, that they randomly get signed off by the app.
What we know:
- iOS devices on their latest software version
- previously this did not happen with the same build?
- maybe this code has something to do with it
Yeah I can confirm. I also had multiple reports after the last Update (to this day) and It seemingly only happens with iOS 18 (not sure what exact version)
And Instead of deleting the accounts it would be better if we would transfer the accounts to the new Keychain system
The code does not use a different keychain system.
When I moved the app from the dev account of my father to mine, it changed the bundle-id thus removing the keychain access.
The code should (and did) only detect when a bundle-id change has happened.
I could try removing the transfer code, since it does not serve a lot of purpose and the majority of users had a chance to update, but i will have to check my App Store connect dashboard to be sure.
I had another report and Its not exclusive to iOS 18. That person has iOS 17.7.10
Maybe I could create a testflight build with a bunch of logging API calls on all points of the login routine to debug this problem not in prod, but in beta.
(I also am starting at my new job on monday, so I am not sure how much time I have to do this.)
One classmate also has this issue. The iOS version was 18.6.1.
I dont know if this is yet know but I had the same issue and just noticed that multiple session_X_db.sqlite are inside my Lanis folder (on the local storage). So maybe an issue with the app forgetting about the old sessions? I now just deleted all of them, maybe that will help. I will report if so.
This should not help. There are at least two of these databases. One primary and all the other ones are a database per account. Depending on with what account you log in a different database is loaded.
If you only have 2 accounts then there should be only 2 documents. (At least, when you reinstall the app. Maybe the transfer of the app messed something up for updaters...)
yeah thats what I thought too, but I had 12 of them so...
That could also explain why a reinstall helps because on iOS for some stupid reason the keychain is NOT deleted when an app gets uninstalled.
Next release (only god knows when this will happen) i will implement a prompt for users to reinstall the app.
Make sure that the Prompt is not mandatory. So basically something. "Do you experience many logouts since some time? Then reinstall the app to fix that" And then a Dont remind me again checkbox
Yeah. I will implement the necessary checks. Luckily the transfer code wrote something in the key 'ios-cert-ownership-transfer' so we can differentiate between different users based on weather they are experiencing the bug or not.