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

Venom with electronjs #2798

Open
Aetiru opened this issue Aug 9, 2024 · 3 comments
Open

Venom with electronjs #2798

Aetiru opened this issue Aug 9, 2024 · 3 comments
Labels
needs triage Needs avaliation question Further information is requested

Comments

@Aetiru
Copy link

Aetiru commented Aug 9, 2024

I am currently working on using venom and electron, but I need to display the whatsapp web within my electron app, I have been trying to do various things without anyone else, can you give me some advice on what I can do? while I try the solution of a WhatsApp website of a webview and send it to venom but it is not possible.

@Aetiru Aetiru added needs triage Needs avaliation question Further information is requested labels Aug 9, 2024
@josephMblT
Copy link

i my case i am using electron with react, so i am using a webview
<webview src="https://web.whatsapp.com" style={{ height: '100%' }} preload={preloadUrl} partition={persist:${[brand, session.user?.id].join('-')}} ref={webviewRef} />
preload is wapi and some additional code which have webpack it and i am injecting in to the webview. with this,
i am using the ref to send messages to and and from the whatsapp to perform actions like getchat and others,

this was working but because of the update to whatsapp, wapi stopped working because the Store object was not been populated, so i am still waiting for an update from wapi

@Aetiru
Copy link
Author

Aetiru commented Aug 12, 2024

I am currently using webview, however, in the development that is being done, whatsapp web is required to display in the webview, pass the session to venom or for venom to pass it to it, so as not to read two QR codes, since the client requires having the whatsapp web within the app

@josephMblT
Copy link

in my case, i am not using all of venom. i extracted the wapi part of it, and in the preload script, i inject wapi, this gives me all functionally, but there as some few things you need to do before injecting, like injecting after the user has scan the Qrcode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Needs avaliation question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants