wppconnect-server icon indicating copy to clipboard operation
wppconnect-server copied to clipboard

Whatsapp PUSH notifications

Open vitos88 opened this issue 2 years ago • 11 comments

Ubuntu 20.04 Node 16 WhatsApp 2.22.23.77(the same error was on previous versions) iOS 16.0 (the same error was on previous versions) Wppconnect 1.7.3

after connecting whatsapp to wppconnect push notifications stop coming to the phone, as soon as I disconnect from wppconnect, everything starts working (notifications come) config.json { "secretKey": "THISISMYSECURETOKEN", "host": "http://localhost", "port": "21465", "deviceName": "WppConnect", "poweredBy": "WPPConnect-Server", "startAllSession": true, "tokenStoreType": "file", "maxListeners": 15, "customUserDataDir": "./userDataDir/", "webhook": { "url": null, "autoDownload": true, "uploadS3": false, "readMessage": false, "allUnreadOnStart": false, "listenAcks": true, "onPresenceChanged": true, "onParticipantsChanged": true, "onReactionMessage": true }, "archive": { "enable": false, "waitTime": 10, "daysToArchive": 45 }, "log": { "level": "error", "logger": ["console", "file"] }, "createOptions": { "browserArgs": [ "--disable-web-security", "--no-sandbox", "--disable-web-security", "--aggressive-cache-discard", "--disable-cache", "--disable-application-cache", "--disable-offline-load-stale-cache", "--disk-cache-size=0", "--disable-background-networking", "--disable-default-apps", "--disable-extensions", "--disable-sync", "--disable-translate", "--hide-scrollbars", "--metrics-recording-only", "--mute-audio", "--no-first-run", "--safebrowsing-disable-auto-update", "--ignore-certificate-errors", "--ignore-ssl-errors", "--ignore-certificate-errors-spki-list" ] }, "mapper": { "enable": false, "prefix": "tagone-" }, "db": { "mongodbDatabase": "tokens", "mongodbCollection": "", "mongodbUser": "", "mongodbPassword": "", "mongodbHost": "", "mongoIsRemote": true, "mongoURLRemote": "", "mongodbPort": 27017, "redisHost": "localhost", "redisPort": 6379, "redisPassword": "", "redisDb": 0, "redisPrefix": "docker" } }

vitos88 avatar Dec 09 '22 23:12 vitos88

This is not an error, Whatsapp itself works that way.

icleitoncosta avatar Dec 11 '22 13:12 icleitoncosta

This is not an error, Whatsapp itself works that way.

and this is not how not to fix it?

vitos88 avatar Dec 11 '22 18:12 vitos88

This is not an error, Whatsapp itself works that way.

and this is not how not to fix it?

When you connect to whatsapp web through a window it automatically stops sending notifications to the phone. As far as I know it's not possible.

icleitoncosta avatar Dec 11 '22 18:12 icleitoncosta

This is not an error, Whatsapp itself works that way.

and this is not how not to fix it?

When you connect to whatsapp web through a window it automatically stops sending notifications to the phone. As far as I know it's not possible.

As far as I know, you can disable this feature using google chrome settings/advanced/alerts. But how to do it for wppconnet in Ubuntu?

vitos88 avatar Dec 12 '22 06:12 vitos88

identificado que o comportamento normal da própria whatsapp e não da aplicação wppconnect.

renat473 avatar Jan 16 '23 18:01 renat473

--disable-notifications add this to "browserArgs" list & try to restart yarn

jabar-dana avatar Jul 05 '23 09:07 jabar-dana

Check this link out for various Chrome related Commands CHROME CLI

jabar-dana avatar Jul 05 '23 09:07 jabar-dana

can we do something like this? https://github.com/code-chat-br/whatsapp-api/commit/bee0a5c4ed2ed7835e0031f30ee9429e9cb8ce17 @renat473 @icleitoncosta

Saifallak avatar Mar 30 '24 18:03 Saifallak

can we do something like this?

https://github.com/code-chat-br/whatsapp-api/commit/bee0a5c4ed2ed7835e0031f30ee9429e9cb8ce17

@renat473 @icleitoncosta

You can do it, but you stop receiving important notifications.

icleitoncosta avatar Mar 30 '24 20:03 icleitoncosta

can we do something like this?

https://github.com/code-chat-br/whatsapp-api/commit/bee0a5c4ed2ed7835e0031f30ee9429e9cb8ce17

@renat473 @icleitoncosta

I reopened the issue to include the function of setting the online status as false here on the server, using the setOnlinePresence from the library, so that you can do that.

icleitoncosta avatar Mar 30 '24 20:03 icleitoncosta

can we do something like this? code-chat-br/whatsapp-api@bee0a5c @renat473 @icleitoncosta

You can do it, but you stop receiving important notifications.

Important notification like what?

Saifallak avatar Mar 30 '24 20:03 Saifallak