Skip to content

Conversation

@bergpinheiro
Copy link
Contributor

@bergpinheiro bergpinheiro commented Nov 1, 2025

  • Add activity tracking (lastActivityTimestamp) to monitor real interactions
  • Implement maintainPresenceOnline() to keep session active during activity
  • Automatically send ONLINE presence when activity occurs
  • Automatically return to OFFLINE after 60 seconds without activity
  • Add lastActivityTimestamp field to SessionInfo API response
  • Implement in all engines (NOWEB, GOWS, WEBJS)
  • Cleanup presence timeout when session stops

This prevents WhatsApp from disconnecting sessions due to inactivity by signaling activity through presence updates while avoiding constant online status that could generate unnecessary notifications.

patron:PRO

issue: #1584

Please check if this is feasible; I'm already using it and it works.

- Add activity tracking (lastActivityTimestamp) to monitor real interactions
- Implement maintainPresenceOnline() to keep session active during activity
- Automatically send ONLINE presence when activity occurs
- Automatically return to OFFLINE after 60 seconds without activity
- Add lastActivityTimestamp field to SessionInfo API response
- Implement in all engines (NOWEB, GOWS, WEBJS)
- Cleanup presence timeout when session stops

This prevents WhatsApp from disconnecting sessions due to inactivity by
signaling activity through presence updates while avoiding constant online
status that could generate unnecessary notifications.
@OrionZap
Copy link

OrionZap commented Nov 1, 2025

Amigo, qual versão está usando atualmente ?

patron:PLUS

@github-actions
Copy link

github-actions bot commented Nov 1, 2025

English


Friend, which version are you currently using?

@bergpinheiro
Copy link
Contributor Author

bergpinheiro commented Nov 1, 2025

Última 10.4 mas com q modificação que citei.

patron:PRO

@github-actions
Copy link

github-actions bot commented Nov 1, 2025

English


Latest 10.4 but with the modification I mentioned.

@bergpinheiro bergpinheiro changed the title [PLUS] Add automatic presence management and activity tracking [CORE] Add automatic presence management and activity tracking Nov 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants