tulir / whatsmeow

Go library for the WhatsApp web multidevice API
https://go.mau.fi/whatsmeow
Mozilla Public License 2.0
2.25k stars 418 forks source link

No new message notification on phone if message received in whatsmeow #605

Closed zhiru closed 1 month ago

zhiru commented 4 months ago

The notification of the received message does not appear on the phone if the message is also received in whatsmeow. How can I get notifications for new messages on my phone?

here is the code that i`m using to connect:

image

like #262

PS: everything is working, sending, receiving, but just the notifications is not working

@hugodeco

ahmedRSA commented 4 months ago

when you scan precense wil set to availble

zhiru commented 4 months ago

when you scan precense wil set to availble

So I have to define the presence before scanning, then there is no way to change it, that's what I understand, right?

ahmedRSA commented 4 months ago

when you scan precense wil set to availble

So I have to define the presence before scanning, then there is no way to change it, that's what I understand, right?

you are already setting presence before scanning after scanning you change precense any time you want

zhiru commented 4 months ago

why brazil people so dumb in coding ?

If you're not here to help, just ignore and let others respond, I don't need your insults!

Let's maintain respect so that everyone can learn and contribute in a positive way.

zhiru commented 4 months ago

when you scan precense wil set to availble

So I have to define the presence before scanning, then there is no way to change it, that's what I understand, right?

you are already setting presence before scanning after scanning you change precense any time you want

Do not tell me! serious? If you read a little and read the title you will see that even though everything is working and even changing the presence to unavaible, we still do not receive the notification. When you responded, what I understood was that it was only before the scan that you could set the presence.

If you see my code you will see that right after connecting to whatsmeow I passed it as unavaible, which I use after having already scanned.

If you have something that can help without offending about receiving notifications on device, I would appreciate it, if not I do not need your comments.

hugodeco commented 4 months ago

Any parameter I define in "SendPresence" brings the same result. Still no "PUSH" notifications

hrizal commented 4 months ago

disconnect from whatsmeow try receiving it at web.whatsapp.com and check your phone too is the same thing happening? If yes, then that's what it is

Pada Sel, 18 Jun 2024 pukul 03.37 Hugo Castro de Deco < @.***> menulis:

Any parameter I define in "SendPresence" brings the same result. Still no "PUSH" notifications

— Reply to this email directly, view it on GitHub https://github.com/tulir/whatsmeow/issues/605#issuecomment-2174379227, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALJQY2COAIFWRYT23U56EV3ZH5CJJAVCNFSM6AAAAABJBA6AKSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZUGM3TSMRSG4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

hugodeco commented 4 months ago

No, its only happen when connected by whatsmeow

PurpShell commented 4 months ago

set the presence to unavailable. You should do this every 15 seconds

zhiru commented 4 months ago

Thanks @PurpShell we will try!

Do you know if is possible to verify/consult the presence?

PurpShell commented 4 months ago

Thanks @PurpShell we will try!

Do you know if is possible to verify/consult the presence?

You can subscribe to your number from another number on whatsmeow, or perhaps just still a little monitor like this one (https://gist.github.com/PurpShell/13f198b996b46e3e783bee1ef06d1a35 v2.3000.x>) on another Web session and click on your chat to see the node coming from WA

hugodeco commented 2 months ago

Resolved !