ChitChat
ChitChat copied to clipboard
"WhatsApp works with Safari 9+"
Running ChitChat 1.5 on MacOS Mojave 10.14.5 and recently encountered this issue screenshotted below, where WhatsApp is asking me to update safari 9+. (For reference, I currently have Safari 12.1.1 on my machine)

I have exactly the same problem and have found nothing on the net to resolve it. I also have Safari 11.11 on my iMac, so I should not be receiving the Safari 9+ message blocking use of WhatsApp on my desktop.
The solution is simple. The issue is this sentence in the app delegate:
//Whatsapp web only works with specific user agents
_webView._customUserAgent = @"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/600.7.12 (KHTML, like Gecko) Version/8.0.7 Safari/600.7.12";
You have to change the custom user agent for an actual one. Like this:
_webView._customUserAgent = @"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.2 Safari/605.1.15";
Same problem here !
Don’t worry, no question is stupid. This is the file you have to edit:
https://github.com/stonesam92/ChitChat/blob/master/WhatsMac/AppDelegate.m https://github.com/stonesam92/ChitChat/blob/master/WhatsMac/AppDelegate.m
Look for the line 101 and edit the user agent value with a new one.
That’s all.
El 7 jun 2020, a las 12:06, roryjmurphy [email protected] escribió:
The solution is simple. The issue is this sentence in the app delegate:
//Whatsapp web only works with specific user agents _webView._customUserAgent = @"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/600.7.12 (KHTML, like Gecko) Version/8.0.7 Safari/600.7.12"; You have to change the custom user agent for an actual one. Like this:
_webView._customUserAgent = @"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.2 Safari/605.1.15";
Hey There,
Stupid question maybe... How would we change the app delegate? I have hunted around in the app and prefs - but have found nothing..
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/stonesam92/ChitChat/issues/156#issuecomment-640190017, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNDQQO2RFESA2ELINESHK3RVNRATANCNFSM4H5BO4UA.
Diego Jimenez
Hey Diego,
I guess I have to use the Github desktop? Cheers,
R
Hi again.
Well… it is up to you, you can use GitHub desktop, Xcode Download or Zip Download. Any of them will let you see the source code and edit the part of code you want or need.
El 7 jun 2020, a las 15:40, roryjmurphy [email protected] escribió:
Hey Diego,
I guess I have to use the Github desktop? Cheers,
R
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/stonesam92/ChitChat/issues/156#issuecomment-640220897, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNDQQJERN4OO2QAWVVJC5LRVOKFVANCNFSM4H5BO4UA.
Diego Jimenez
Just remove whatsapp cookies from your browser and reload the website. It will start working again
Hello. Same problem. safati Version 16.5 (18615.2.9.11.4). Unfortunately, I don't know how to write programs. Please tell me - how can I compile a program with the corrected file. Or better help compile the program with the right file so that it works. Thanks a lot!