Auties00 / Cobalt

Standalone unofficial fully-featured Whatsapp Web and Mobile API for Java and Kotlin
MIT License
616 stars 180 forks source link

No push notification on mobile phone #427

Closed Snowbelldog closed 6 months ago

Snowbelldog commented 6 months ago

I have been running a program for a while that is connected to my iPhone (still IOS 16). A few days ago I noticed that I was no longer receiving notifications, but I had never found the "problem" until just now. I just closed the program to test this very unlikely theory. Now I received the notifications on my iPhone without any problems. As soon as the program is running again and connected to Whatsapp, not anymore.

Is there an explanation as to why this is the case? Is there any kind of confirmation that the message has been received, and is it perhaps too fast for Whatsapp to send a push notification?

Regards, Snow

Snowbelldog commented 6 months ago

291 solved it

I used Whatsapp.webBuilder().lastConnection().acknowledgeMessages(false)