-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ios-webview is shown as just "ios" #110
Comments
Thanks @RusseII - would you mind dropping the UA that the webview is reporting into this issue and I can do some further testing to get to the bottom of this please? I think some folks have used sites like https://www.whatismybrowser.com/detect/what-is-my-user-agent to achieve this in the past. I think you should be able to select and copy and paste the text into this issue. Thanks heaps, |
Perfect! Thanks @damon
Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15
(KHTML, like Gecko) Version/12.1 Mobile/15E148 Safari/604.1
That is the user agent I got from the site you sent.
…On Mon, May 20, 2019 at 9:17 PM Damon Oehlman ***@***.***> wrote:
Thanks @RusseII <https://github.com/RusseII> - would you mind dropping
the UA that the webview is reporting into this issue and I can do some
further testing to get to the bottom of this please?
I think some folks have used sites like
https://www.whatismybrowser.com/detect/what-is-my-user-agent to achieve
this in the past. I think you should be able to select and copy and paste
the text into this issue.
Thanks heaps,
Damon.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#110?email_source=notifications&email_token=ADSXBSTRT4AYTOQMIG63H6LPWNERZA5CNFSM4HOEAT22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV2PDKQ#issuecomment-494203306>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADSXBSQVKAUPHXSVTGVS4BTPWNERZANCNFSM4HOEAT2Q>
.
|
Here is the UA I got from the site while in real safari ... it looks like
they are exactly the same?
Real Safari
Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15
(KHTML, like Gecko) Version/12.1 Mobile/15E148 Safari/604.1
Webview Safari inside gmail app:
Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15
(KHTML, like Gecko) Version/12.1 Mobile/15E148 Safari/604.1
On Mon, May 20, 2019 at 9:20 PM Russell Ratcliffe <[email protected]>
wrote:
… Perfect! Thanks @damon
Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X)
AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1 Mobile/15E148
Safari/604.1
That is the user agent I got from the site you sent.
On Mon, May 20, 2019 at 9:17 PM Damon Oehlman ***@***.***>
wrote:
> Thanks @RusseII <https://github.com/RusseII> - would you mind dropping
> the UA that the webview is reporting into this issue and I can do some
> further testing to get to the bottom of this please?
>
> I think some folks have used sites like
> https://www.whatismybrowser.com/detect/what-is-my-user-agent to achieve
> this in the past. I think you should be able to select and copy and paste
> the text into this issue.
>
> Thanks heaps,
> Damon.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#110?email_source=notifications&email_token=ADSXBSTRT4AYTOQMIG63H6LPWNERZA5CNFSM4HOEAT22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV2PDKQ#issuecomment-494203306>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ADSXBSQVKAUPHXSVTGVS4BTPWNERZANCNFSM4HOEAT2Q>
> .
>
|
@DamonOehlman anymore thoughts on this? |
@RusseII apologies got buried with other things. They do indeed look identical. My familiarity with ios has dropped off in recent years. Perhaps they have lifted their game on apps having the real mobile browser rather than a webview that is lagging behind (which probably causes other problems for app developers). |
Hello, We have the same problem here with Safari. The browser is detected as "ios". Maybe the regex need to be updated ? |
@Fjohn666 It seems that the current method of detection will not work as the User Agent for native Safari, and a Safari webview seem to be identical. |
Yep (and thanks for commenting @RUSSEIL) I think we have hit some limitations with iOS detection. If anyone comes up with any ideas then we can definitely consider implementing them. |
I am not sure how to do it with purely a regex, but right now I'm using this library https://github.com/muaz-khan/DetectRTC, which lets me identify if someone is using a safari webview with:
Then you can see how they check isGetUserMediaSupported here: https://github.com/muaz-khan/DetectRTC/blob/master/dev/DetectRTC.js Maybe we can do something similar to this approach? |
@RusseII nice workaround :) I think rather than try to implement any kind of detection hack into |
I believe this should be detected as ios-webview
The text was updated successfully, but these errors were encountered: