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

Not Detecting WebView Browsers #630

Open
dahleedam opened this issue Jan 8, 2021 · 4 comments
Open

Not Detecting WebView Browsers #630

dahleedam opened this issue Jan 8, 2021 · 4 comments

Comments

@dahleedam
Copy link

Hi,

Script is not detecting webview browsers. For example, Facebook uses WebView browser, SnapChat uses WebView many other applications using their WebView Browsers. Script is not able to check browser for these kind of browsers.

@mariotsi
Copy link
Member

mariotsi commented Jan 8, 2021 via email

@danniehansen
Copy link

@mariotsi I'm having the same issues. I have a few examples of user agent's that it's not seeing (at least for the browser object):

Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148

Mozilla/5.0 (Linux; Android 9; SM-G950F Build/PPR1.180610.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/88.0.4324.152 Mobile Safari/537.36

Mozilla/5.0 (Linux; Android 10; VOG-L29 Build/HUAWEIVOG-L29; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/88.0.4324.152 Mobile Safari/537.36

Mozilla/5.0 (Linux; Android 8.0.0; WAS-LX1 Build/HUAWEIWAS-LX1; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/88.0.4324.152 Mobile Safari/537.36

Mozilla/5.0 (Linux; Android 9; FIG-LX1 Build/HUAWEIFIG-L31; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/88.0.4324.152 Mobile Safari/537.36

Mozilla/5.0 (iPhone; CPU iPhone OS 12_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148

I've falled back to my own parsing that just detects chrome/webview usage based on the above.

@webSudarshan
Copy link

Yes, this library is not detecting webview, will it be fixed?

@MCheep
Copy link

MCheep commented Nov 2, 2023

you might try something like this

$result = new WhichBrowser\Parser(...)
$return['browser_version'] = $result->browser->getVersion() ?: $result->browser->using->getVersion();
$return['browser_name'] = $result->browser->getName() ?: $result->browser->using->getName();

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

6 participants
@danniehansen @mariotsi @dahleedam @webSudarshan @MCheep and others