evolution-api icon indicating copy to clipboard operation
evolution-api copied to clipboard

Fica sempre online, mesmo com "Always Online" desmarcado

Open TiagoGouvea opened this issue 9 months ago • 8 comments

Mesmo com "Always Online" desmarcado, a conta permanece sempre online no WhatsApp.

Which version of the API are you using?

2.3.7

TiagoGouvea avatar Feb 19 '26 13:02 TiagoGouvea

Na issue #324 foi comentado por dois usuários que a situação acontecia. A conta fica sempre online, mesmo com "Always Online" desmarcado.

TiagoGouvea avatar Feb 19 '26 13:02 TiagoGouvea

Hello team,

I am experiencing the exact same issue on the latest Docker image. Even when alwaysOnline and readMessages are strictly set to false, the WhatsApp linked device remains constantly in the "Active" state.

The core problem this causes: Because the device never switches to "Last active..." and stays "Active" infinitely, WhatsApp servers assume I am actively looking at WhatsApp Web. As a result, all incoming push notifications on my physical mobile phone are muted/silenced (No sound).

Steps to reproduce:

  1. Create a new instance with alwaysOnline: false.
  2. Link the device via QR code.
  3. Completely close the Evolution Manager UI (to ensure no active WebSockets are keeping the presence alive).
  4. Restart the container (docker compose restart evolution-api).
  5. Wait for more than 5 minutes (to trigger the setInterval in whatsapp.baileys.service.ts).

Expected behavior: The linked device status on the phone should change to "Last active today at...". Actual behavior: The status remains stuck on "Active" forever, and phone notifications remain muted.

It seems the this.setPresence({ presence: 'unavailable' }); is either not firing or is being overridden by another process in the latest Baileys engine.

Fixing this is critical for users who rely on their physical phones alongside the API. Looking forward to a patch. Thank you!

nektariosfarah avatar Feb 21 '26 21:02 nektariosfarah

when it will be solved?

nektariosfarah avatar Mar 05 '26 22:03 nektariosfarah

Nada ainda pessoal? Alguém conseguiu resolver?

italovarzone avatar Mar 10 '26 19:03 italovarzone

Tive o mesmo problema mas apenas com 2 clientes. Ambos usuários de Iphone. Imaginei que pudesse ser algo relacionado a economia de energia mas nada resolveu. Acompanhando.

mhanelia avatar Mar 12 '26 01:03 mhanelia

O que resolveu para mim foi criar um workflow no n8n que é bem basico:

Recebo o webhook > wait de 1 min > HTTP Request enviando "presence": "unavailable"

Com isso os celulares voltaram a receber as notificações corretamente e não tive interferencia alguma nas instancias

NiceFeatures avatar Mar 13 '26 14:03 NiceFeatures

O que resolveu para mim foi criar um workflow no n8n que é bem basico:

Recebo o webhook > wait de 1 min > HTTP Request enviando "presence": "unavailable"

Com isso os celulares voltaram a receber as notificações corretamente e não tive interferencia alguma nas instancias

@NiceFeatures será que vc poderia compartilhar o json com esse workflow? Não entendi muito bem

mhanelia avatar Mar 13 '26 15:03 mhanelia

Olá! Estamos fazendo uma triagem do backlog para reduzir duplicação.

Esta issue reporta o mesmo problema rastreado em #2469. Vamos consolidar as discussões lá para concentrar atenção da maintainer team e evitar fragmentação.

Por favor:

  • Acompanhe #2469 para updates
  • Adicione lá quaisquer detalhes/logs novos que não estejam no thread original
  • Se você acredita que é um problema diferente, comente em #2469 explicando a diferença e podemos reabrir

Obrigado pelo report!

DavidsonGomes avatar May 19 '26 14:05 DavidsonGomes