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

Whatsapp PUSH notifications #1010

Open
vitos88 opened this issue Dec 9, 2022 · 11 comments
Open

Whatsapp PUSH notifications #1010

vitos88 opened this issue Dec 9, 2022 · 11 comments
Labels
bug Something isn't working needs triage

Comments

@vitos88
Copy link

vitos88 commented Dec 9, 2022

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 vitos88 added bug Something isn't working needs triage labels Dec 9, 2022
@icleitoncosta
Copy link
Collaborator

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

@vitos88
Copy link
Author

vitos88 commented Dec 11, 2022

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

and this is not how not to fix it?

@icleitoncosta
Copy link
Collaborator

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.

@vitos88
Copy link
Author

vitos88 commented Dec 12, 2022

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?

@renat473
Copy link
Contributor

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

@jabar-dana
Copy link

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

@jabar-dana
Copy link

Check this link out for various Chrome related Commands
CHROME CLI

@Saifallak
Copy link
Contributor

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

@icleitoncosta
Copy link
Collaborator

can we do something like this?

code-chat-br/whatsapp-api@bee0a5c

@renat473 @icleitoncosta

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

@icleitoncosta icleitoncosta reopened this Mar 30, 2024
@icleitoncosta
Copy link
Collaborator

can we do something like this?

code-chat-br/whatsapp-api@bee0a5c

@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.

@Saifallak
Copy link
Contributor

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?

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

5 participants