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

SubscribePresence, onPresenceChanged.....is not working ! #1842

Open
juankbenavidess opened this issue Sep 20, 2023 · 0 comments
Open

SubscribePresence, onPresenceChanged.....is not working ! #1842

juankbenavidess opened this issue Sep 20, 2023 · 0 comments
Labels
bug Something isn't working needs triage

Comments

@juankbenavidess
Copy link

juankbenavidess commented Sep 20, 2023

Description

SubscribePresenc, onPresenceChanged is not working properly, it is intermittent.

Issues
Intermittence when the presence changes, sometimes a while passes and it stops working
Flashing when presence changes, it starts working correctly, after a moment it only shows the presence change when I receive a message, which is not correct
I have a case on a phone with more than 3000 contacts but it does not show the status change for all of them, only if there is a new contact.

Environment

  • **WPPConnect version(s): "@wppconnect-team/wppconnect": "1.28.0",
  • Browser: Chrome 116.0.5845.111
  • OS: Windows 10
  • Node version: 18.12
  • **WhatsApp version:**2.2338.12
  • MultiDevice (BETA): no

Your Code

const contacts = await client.getAllContacts();
await client.subscribePresence(contacts.map((c) => c.id._serialized));
client.onPresenceChanged(async presenceChangedEvent => {

   console.log(presenceChangedEvent)
});
@juankbenavidess juankbenavidess added bug Something isn't working needs triage labels Sep 20, 2023
@juankbenavidess juankbenavidess changed the title SubscribePresence is not working ! SubscribePresence, onPresenceChanged.....is not working ! Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

1 participant