Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intermittently logging out for no reason #115

Open
guzelonur opened this issue Sep 16, 2023 · 6 comments
Open

Intermittently logging out for no reason #115

guzelonur opened this issue Sep 16, 2023 · 6 comments

Comments

@guzelonur
Copy link

guzelonur commented Sep 16, 2023

Hi,
I've been using WAWTG for more than one year with 1.7.2 but the most annoying problem is that it is logging out by itself, it is not happening frequently but it can happen ANYTIME when you really need Whatsapp. And to use Whatsapp Web again, you need to link the device again using WAWTG app to log in again.

Now installed 1.7.3 but i do not have any hope as it does not appear to be mentioned in release notes.

Edit: The problem persists with 1.7.3 still.

Can it be fixed?

@dilinger
Copy link

I see this as well, both in WAWTG and on my debian desktop with firefox. I assumed that's just how Whatsapp worked, but someone else told me that they don't get logged out from the web interface.

@92lleo
Copy link
Owner

92lleo commented Oct 10, 2023

Hi, I have this issue sometimes, too. Until now, nothing we can do against this. Seems to come from whatsapp side, haven't yet figured out what triggers this

@voidplayer
Copy link

Its starting to happen several times per day. When this used to happen, you could clear all data and relink and it would fix the random logouts for a long time again

This no longer works. Ive been constantly logged out for 2 days. It happened after i upgraded to the latest whatsapp version. It forced me to upgrade or threatened me to stop working within 15 days

@92lleo
Copy link
Owner

92lleo commented Feb 22, 2024

Might be fixed with updating the user-agent (mismatch between webview and agent version), will check

@voidplayer
Copy link

Its been working fine here for a while. Very hard to tell whats causing it but it only happens on this app. Ive been logged in a desktop for a very long time without being disconnected

@andrigamerita
Copy link

andrigamerita commented Sep 26, 2024

Can confirm that this happens totally randomly in practice.
And I would guess this is indeed a problem with this specific app, since the normal WhatsApp Web site on Firefox desktop has never disconnected my session.

I've got a suspicion this could be related to data corruption inside the WebView's profile, which may happen when WhatsApp Web does some operations on its local database, and at the same time the WAWTG app is frozen/killed by Android (due to putting it on foreground).

This happening is not a server-side logout, but a local one, since the disappeared session can be normally found listed inside the "Linked devices" screen on the normal WhatsApp native app, as if it was never removed.
And, I would add, in case this is really a corrupted database issue, if one were to have a backup of the /data/data/<this app> folder (which can be done with root access), restoring it would restore the lost session.

If this is actually the case, unless some kind of other safety can be implemented to prevent the corruption in the first place, I suggest that the app integrate some kind of transparent, automatic backup+restore system for the WebView profile, so that the app can recover a session lost this way by itself.

Addendum: actually today the app stopped working altogether for me. This morning I opened the app one time, and no issues; I opened it a second time, and it logged out; I was doing some tests right now after logging in again, and each time I close the app now the session gets lost. Strange. (Yes, I deleted the app data from Android settings each time before doing a new login, to ensure that the new login wouldn't be tainted by a potentially corrupted profile; totally in vain however)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants