-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
No new message notification on phone if message received in Baileys #299
Comments
You can set const sock = makeWASocket({
...config,
markOnlineOnConnect: false
}) |
Thank You |
hi im using https://github.com/code-chat-br/whatsapp-api |
const sock = makeWASocket({ |
sorry I didnt understand 100% this is there any solution to my problem or anyhow the markOnlineOnConnect: false works ? |
Yes, after applied |
thank you for the clarification, is so sad there is no way to fix this, I have seen other APIs can do, but this API has much more features, this is the only one I wish there is a fix anytime soon |
This dirty trick might help if(events['messages.upsert']) {
client.sendPresenceUpdate('unavailable') |
If there are high number of incoming messages, will it cause any issue due to spamming of presence update? |
Any progress on this problem? By making the suggestions above, the alerts on the cell phone temporarily work again... then the problem continues... |
Yes it will spam, this is not a proper way of doing things. This person should've set a debounce on it |
For everyone confused here: client.sendPresenceUpdate('unavailable') Readme reference: https://github.com/WhiskeySockets/Baileys?tab=readme-ov-file#update-presence |
Hello
For some reason, the notification of the received message does not appear on the phone if the message is also received in Baileys. How can I get notifications for new messages on my phone?
The text was updated successfully, but these errors were encountered: