Skip to content

After couple app restarts no longer receive new messages #562

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

Open
DevSrSouza opened this issue Mar 31, 2025 · 10 comments
Open

After couple app restarts no longer receive new messages #562

DevSrSouza opened this issue Mar 31, 2025 · 10 comments
Labels
waiting triage A maintainer acknowledged the issue, further discussion is needed

Comments

@DevSrSouza
Copy link

After I do couple app restarts in no longer receive new messages it only receives when I restart the app. In this case, my session is broken, I can restart 50 times and it will not start receive new messages, only if I logout and read a new QR Code. This project use Web Builder.

What could that be? How can I force sync the Store again?

Second issue:
Sending audio messages sometimes it does send correctly, sometimes it does not, it appears only in Web WhatsApp from the receiving user as "waiting". The same code, sometimes correctly send the audio. I have try to call reupload medias, no error appear but did not work as well, what could be happening here?

@Auties00 Auties00 added the waiting triage A maintainer acknowledged the issue, further discussion is needed label Mar 31, 2025
@DevSrSouza
Copy link
Author

Giving more context for the second issue. My implementation, receives the message from desktop and use the data inside the message to fetch the Chat and send the audio, I have not tested, but maybe could be it.

I have also tested sending the message from the Mobile device and with the audio, still did not work, so not sure if the context provided is useful.

@Auties00
Copy link
Owner

Is your account in any newsletter (channel)?

@DevSrSouza
Copy link
Author

Yes, my mobile account is @Auties00 . I will try to list it using Cobalt API to see if returns anything

@Auties00
Copy link
Owner

Please exit all of them and try again, see if a new session falls in the same spiral

@DevSrSouza
Copy link
Author

whatsappApi.store().newsletters().map { it.jid().user() } is returning a empty list. The voice message is working now, if I have any regressions I will mention. What could be causing this, they are complete different APIs.

This change did not solve the notification issue after multiple restarts, I still only receive the notification when I restart the app, then I receive all notifications at once and don't receive new messages.

@Auties00
Copy link
Owner

whatsappApi.store().newsletters().map { it.jid().user() } is returning a empty list. The voice message is working now, if I have any regressions I will mention. What could be causing this, they are complete different APIs.

This change did not solve the notification issue after multiple restarts, I still only receive the notification when I restart the app, then I receive all notifications at once and don't receive new messages.

Newsletters sometimes send nodes that maybe cobalt doesn’t handle so WhatsApp’s backend doesn’t receive the ack and gets confused

@DevSrSouza
Copy link
Author

Well, I was wrong, I have try another voice message again and fail again to send. As I have send previously, the code is the same but sometimes it works, sometime it does not.

@Auties00
Copy link
Owner

Well, I was wrong, I have try another voice message again and fail again to send. As I have send previously, the code is the same but sometimes it works, sometime it does not.

Let’s see first the message receiving issue, let me know if this fixes it

@DevSrSouza
Copy link
Author

Well, now I restart the application but all voice messages is showing the "waiting" for the first message and the next message is not showing anything.

@DevSrSouza
Copy link
Author

Let’s see first the message receiving issue, let me know if this fixes it

It did not fix the issue, I did test it multiple times, after multiples restart it stop receiving new messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting triage A maintainer acknowledged the issue, further discussion is needed
Projects
None yet
Development

No branches or pull requests

2 participants