-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Provide Custom Puppeteer Instance to Client #508
Comments
@cstayyab
current:
When I created the WA instance I just did like that:
That worked for me just fine, until when I've closed and reopen the app: The already authenticated WhatsApp session isn't reloading and I'm stucked with the google chrome update error : "WhatsApp works with Google Chrome 60+" I've oppened DevTools in the app window and executed By the way I'm running on Windows 10. |
this is off-topic, and some people have released some projects for electron with some really good success don't expect them to have documentation though One that has caught my attention is https://github.com/Zzombiee2361/whatsapp-web-electron.js you start the client with new Client(browser, window, ClientOptions) some stuff that didn't work well with electron like sending stickers are not advised to be used. Closing this thread. |
@PurpShell This issue is still not resolved! |
Coming late to the party, with the same issue. Did you guys @arthurpadilha @h110m managed to find some workaround? |
Bro its like way to late xD |
I know that feeling :D |
@vtoskovic-mdx i think i actually changed the user agent or smth but it was way to hacky what i did |
Is your feature request related to a problem? Please describe.
I am using WhatsApp-Web.js with Electron and WhatsApp Web is opened in Electron Window. I am passing WhatsApp Web Session to WhatsApp-Web.js but as soon as I do that WhatsApp Web on Electron windows shows "You are using WhatsApp Web elsewhere" Dialog. I want to pass Custom puppeteer Instance to WhatsApp-Web.js using "Puppeteer-in-electron" Package so electron and WhatsApp-Web.js share the same instance of WhatsApp Web. Is there a way to achieve this?
Describe the solution you'd like
There should be an argument to pass puppeteer/puppeteer-core instance to Client constructor so it uses that instance of puppeteer instead of its own new instance.
Describe alternatives you've considered
Clone the repository making required changes myself but this way I have to manually integrate changes from new versions of WhatsApp-web.js and it is not convenient.
Additional context
![image](https://user-images.githubusercontent.com/29598866/103354759-3baf6180-4ace-11eb-81c4-733122162928.png)
The text was updated successfully, but these errors were encountered: