detect-browser icon indicating copy to clipboard operation
detect-browser copied to clipboard

Module doesn't detect safari/ios when opened from the spring board (save site to springboard)

Open dannybloe opened this issue 7 years ago • 4 comments

The useragent is slightly different when run from the springboard.

dannybloe avatar May 30 '17 09:05 dannybloe

@dannybloe Can you post a sample of the user agent string?

5punk avatar Aug 06 '17 04:08 5punk

Sorry, it's a screenshot. I guess it is the whitespace after the version causing the issues. I'm not great at regex though.

image

EddieOne avatar Oct 21 '17 06:10 EddieOne

Ah I think I spotted the issue. I believe Chrome is being wrongly identified with Safari. This page has all the details. https://developer.chrome.com/multidevice/user-agent

EddieOne avatar Oct 21 '17 07:10 EddieOne

Is this still an issue, I used the user agent above to do some testing and it appears to get correctly detected as a safari browser on MacOS (which looks correct).

UA string used (as text):

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/601.7.8 (KHTML, like Gecko) Version/9.1.3 Safari/601.7.8

DamonOehlman avatar Mar 07 '20 05:03 DamonOehlman