question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Edge is detected as Safari on iOS

See original GitHub issue

Hi!

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:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
DamonOehlmancommented, Oct 26, 2019

@amok thanks for testing. Merged down the branch and published 4.8.0

1reaction
amokcommented, Oct 25, 2019

@DamonOehlman thanks for the fast reply

Tested on IOS MS Edge:

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Microsoft Edge for iOS is detected as Mobile Safari #25420
Micosoft Edge for iOS has user agent like: Mozilla/5.0 (iPhone; CPU iPhone OS ... Microsoft Edge for iOS is detected as Mobile Safari...
Read more >
Detecting Microsoft Edge from your website
If you have a good reason to detect the browser, the Microsoft Edge team recommends using User-Agent Client Hints as the primary detection...
Read more >
User Agent in Safari on iPadOS | Apple Developer Forums
I opened Settings -> Safari -> Request Desktop Website -> All websites. That option is enabled by default. I disabled it and the...
Read more >
Microsoft Edge for iOS and Android: What developers need to ...
Microsoft Edge is coming to iOS and Android, letting Windows customers roam their browsing experience wherever they go.
Read more >
Microsoft Edge Looks Set to Overtake Safari as World's ...
Microsoft Edge is on the verge of overtaking Safari as the world's second most popular desktop browser, web analytics service StatCounter ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found