Edge is detected as Safari on iOS
See original GitHub issueHi!
First of all, great package!
I may have found a bug regarding the use case of Edge for iOS, not entirely sure whether this issue is on your side of Microsoft’s. Anyhow, here it is.
When using Edge for iOS: When detect();
is used to retrieve the name of the browser, Edge with it’s user-agent of
Mozilla/5.0 (iPhone; CPU iPhone OS 12_1_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 EdgiOS/44.2.1 Mobile/16D57 Safari/605.1.15
will give you a miss-leading answer, namely “ios”. Although when using the user-agent that Microsoft states by changing network conditions in Chome.
Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_2 like Mac OS X) AppleWebKit/603.2.4 (KHTML, like Gecko) Mobile/14F89 Safari/603.2.4 EdgiOS/41.1.35.1
It will at least give you a better response, “ios-webview”.
Would be very grateful if you could look into this.
BR
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
@amok thanks for testing. Merged down the branch and published
4.8.0
@DamonOehlman thanks for the fast reply
Tested on IOS MS Edge: