chatwoot-mobile-app
chatwoot-mobile-app copied to clipboard
Getting logged out everytime I open the app
Android app v.1.4.5 Every time I open the app, it asks me for the installation URL, username and password. Looks like the session does not last. The previous version was not doing it.
We are encountering the same issue.
This issue is really a blocker for adoption. Having to log in again and again is making our team not use the app.
@jean-philippeansel Missed this one, app is working fine in the latest version
@jean-philippeansel @julienmarie Could you please share your installation and mobile app version?
The auto logouts are happening for accounts used by multiple people/devices.
This is because of a flag in devise_token_auth.rb in rails codebase in this line
config.max_number_of_devices
It sets the max number of concurrent devices per user, which is 10 by default. After this limit is reached, the oldest tokens will be removed. So, for example, Account A is being used by everyone in your organization thus multiple users/devices for one account, and the oldest token gets removed resulting in that user getting logged out.
Solution: Uncomment the mentioned line and increase max_number_of_devices to avoid logouts.