Package Details: whatsapp-nativefier 2.2033.7-1

Git Clone URL: https://aur.archlinux.org/whatsapp-nativefier.git (read-only, click to copy)
Package Base: whatsapp-nativefier
Description: WhatsApp desktop built with nativefier (electron)
Upstream URL: https://web.whatsapp.com
Licenses: custom
Submitter: frealgagu
Maintainer: frealgagu
Last Packager: frealgagu
Votes: 85
Popularity: 6.02
First Submitted: 2018-12-14 22:30
Last Updated: 2020-08-13 03:50

Pinned Comments

saulocastelo commented on 2020-03-29 10:46

Hey guys,

I created the original fix.

And now I share another way to use whatsapp web on nativefier. No code injection required.

Pressing ctrl+shift+i (on Linux) and the Devtools window will open. Then click on Application -> Service Workers And check the option Bypass for network.

Now press ctrl+r to reload. And ctrl+shift+i to close the Devtools.

Whenever you open your whatsapp the problem will occur, but since the Bypass for network option has already been enabled, you only need to press ctrl+shift+i (open devtools), ctrl+r (reload), ctrl+shift+i (close devtools)

@frealgagu, thanks for your work. This package was in my list as one of required apps to be installed after install Arch. I saw your last update ( document.querySelector("a[href='https://support.google.com/chrome/answer/95414']") ), NICE/GREAT/GOOD!

Another way to do the same in 2 lines: document.querySelector("a[href='https://support.google.com/chrome/answer/95414']") && navigator.serviceWorker.getRegistration().then(r => r.unregister() && document.location.reload());

frealgagu commented on 2018-12-19 15:48

@bionade24 Unfortunately whatsapp-web-desktop is not working and @tembleking has not attended, so this is an alternative, possibly we could merge but meanwhile this package will contain the necessary fix to work.

bionade24 commented on 2018-12-19 15:16

Why have you made new one instead of contributing to the existing whatsapp-web-desktop package?

frealgagu commented on 2018-12-19 11:41

It's strange, I'm using KDE Plasma also and the icon is shown OK. I'll try to add more icon sizes this weekend to see of it solves those issues.

chris_klpp commented on 2018-12-19 09:08

Thanks for this. I use KDE-Plasma and my system-tray icon is completly oversized, like i only see a green square. Has someone a way to fix this?

frealgagu commented on 2018-12-15 23:14

@rplanchuelo I don't know how to achieve this with nativefier, the version in electron made in https://github.com/Enrico204/Whatsapp-Desktop which contain those features was abandoned.

rplanchuelo commented on 2018-12-15 10:18

Thanks. It's great. It would be interesting to include all the options of "new message" notifications (red dot in system tray icon)

frealgagu commented on 2018-12-14 22:32

I've created a package which include the fix for whatsapp using nativefier. Also I've added the icon from the webpage https://www.whatsapp.com/favicon.png and added the option to use in tray. Thanks @Frikinux for your collaboration.

https://aur.archlinux.org/packages/whatsapp-nativefier/

Frikinux commented on 2018-12-14 20:16

On the other hand, to make it more user-friendly, it is possible to add the option to start (and use it) minimized in the system tray.

Once installed, edit the file:

/opt/whatsapp-web/resources/app/nativefier.json

and change "tray":false for "tray":"start-in-tray" (with quotes)

I recommend changing or editing too /opt/whatsapp-web/resources/app/icon.png with an image editor (like GIMP) to make the white background transparent (in format png).

It would be interesting to include all the options of "new message" notifications (red dot in system tray icon) in the version of https://github.com/Enrico204/Whatsapp-Desktop

The above can be added before installing in PKGBUILD as nativefier option: --tray "start-in-tray" \

I hope that helps. Greetings!

Frikinux commented on 2018-12-14 19:53

Hi! I've created a quick-fix based on nativefier injection (mentioned in https://github.com/jiahaog/nativefier/issues/719) for "WhatsApp works with Google Chrome 36+" error.

The error will disappear and the fix will survive at each start.

Create a archive named: inject.js

With the following content:

if (document.body.innerText.replace(/\n/g, ' ').search(/whatsapp works with.*to use whatsapp.*update/i) === 0)
    navigator.serviceWorker.getRegistration().then(function (r) { r.unregister(); document.location.reload() });

Save it in /opt/whatsapp-web/resources/app/inject/ folder.

The complete file path is therefore: /opt/whatsapp-web/resources/app/inject/inject.js

I hope it helps. Maybe it would be interesting to include it in the PKGBUILD for next versions. Enjoy it!

StreakyCobra commented on 2018-12-13 07:55

It seems related to nodejs-nativefier (https://github.com/jiahaog/nativefier/issues/719)