ChitChat icon indicating copy to clipboard operation
ChitChat copied to clipboard

"WhatsApp works with Safari 9+"

Open ezgranet opened this issue 5 years ago • 8 comments

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)

Screenshot 2019-07-02 at 20 07 09

ezgranet avatar Jul 03 '19 03:07 ezgranet

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.

YankeeinFrance avatar Jul 29 '19 08:07 YankeeinFrance

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";

wazowski78 avatar Jul 29 '19 09:07 wazowski78

Same problem here !

theophanemayaud avatar Dec 26 '19 18:12 theophanemayaud

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

wazowski78 avatar Jun 07 '20 11:06 wazowski78

Hey Diego,

I guess I have to use the Github desktop? Cheers,

R

rogersillyface avatar Jun 07 '20 13:06 rogersillyface

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

wazowski78 avatar Jun 07 '20 15:06 wazowski78

Just remove whatsapp cookies from your browser and reload the website. It will start working again

shafin-salim avatar Sep 08 '20 20:09 shafin-salim

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!

Belogvardeetc avatar Jun 16 '23 07:06 Belogvardeetc