Skip to content
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

Browser versionis undefined in standalone mode in ios. #204

Closed
yanbess opened this issue Oct 27, 2017 · 5 comments
Closed

Browser versionis undefined in standalone mode in ios. #204

yanbess opened this issue Oct 27, 2017 · 5 comments

Comments

@yanbess
Copy link

yanbess commented Oct 27, 2017

There is no browser version in standalone mode (app mode) in iOS (10.3.3)
Thanks.

@ibc
Copy link

ibc commented Dec 20, 2017

@yanbess, just wondering why you ignored the issue template when reporting this undocumented issue. The issue template is clear:

Template to report about browser detection issue

window.navigator.userAgent of the browser is: ...
And it's detected like a ...
But real name of the browser is ...

You should respect the rules for reporting issues.

@nicgirault
Copy link
Contributor

nicgirault commented Jun 21, 2018

Same issue.

Here are some buggy userAgent:

  • Mozilla/5.0 (iPad; CPU OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) Mobile/14G60
  • Mozilla/5.0 (iPad; CPU OS 10_3_2 like Mac OS X) AppleWebKit/603.2.4 (KHTML, like Gecko) Mobile/14F89 Safari
  • Mozilla/5.0 (iPad; CPU OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Mobile/14E304
  • Mozilla/5.0 (iPhone; CPU iPhone OS 11_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15F79 [FBAN/FBIOS;FBAV/175.0.0.47.102;FBBV/112197024;FBDV/iPhone8,1;FBMD/iPhone;FBSN/iOS;FBSV/11.4;FBSS/2;FBCR/Virgin;FBID/phone;FBLC/en_US;FBOP/5;FBRV/0]
  • Mozilla/5.0 (iPad; CPU OS 11_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E302 Safari
  • Mozilla/5.0 (iPad; CPU OS 11_3_1 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) GSA/51.0.198805899 Mobile/15E302 Safari/604.1
  • Mozilla/5.0 (iPad; CPU OS 11_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15F79 [FBAN/FBIOS;FBAV/176.0.0.70.93;FBBV/113661473;FBDV/iPad4,1;FBMD/iPad;FBSN/iOS;FBSV/11.4;FBSS/2;FBCR/;FBID/tablet;FBLC/en_US;FBOP/5;FBRV/0]

bowser._detecct(ua) returns:

{ 
  "name":"Safari",
  "safari":true,
  "webkit":true,
  "ipad":true,
  "ios":true,
  "osname":"iOS",
  "osversion":"10.3.3",
  "tablet":true,
  "a":true
}

No version here. I use bowser 1.9.3

Seems similar to #222

@lancedikson
Copy link
Collaborator

@nicgirault, cool. Now we have a lot of examples 👍 Even though, I don't think we can currently make it possible to detect Standalone mode in general, but we still can do it in special cases when we know for sure that the browser is run by Facebook (when it has FBBV, FBAN, etc). I'll provide first alpha 2.0 release as a convenient basement in a couple of days, which will make it possible to collaborate and develop such specific detections in a better way than we have now.

@lancedikson
Copy link
Collaborator

Oh, now I had a closer look at those UAs, that you've provided and it seems that there is no way for bowser to detect versions at all. They are not provided by the browser itself, so bowser can't deal with that either. Sorry. But, if you have any idea how to fix that, come back and share, please :)

@lancedikson
Copy link
Collaborator

So, I'll close the issue for now, and will leave the issue about FB browser, since it's a bit simpler case, where we can detect standalone mode and say about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants