detect-browser
detect-browser copied to clipboard
Module doesn't detect safari/ios when opened from the spring board (save site to springboard)
The useragent is slightly different when run from the springboard.
@dannybloe Can you post a sample of the user agent string?
Sorry, it's a screenshot. I guess it is the whitespace after the version causing the issues. I'm not great at regex though.
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
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