hisorange / browser-detect

Browser Detection for Laravel by hisorange!
https://browser-detect.com
MIT License
1.09k stars 144 forks source link

isInApp returns true with Android Chrome Browser 102.0.5005.78 #185

Closed tcgunel closed 2 years ago

tcgunel commented 2 years ago

Below android chrome user agent is returning true with the isInApp regexp.

Mozilla/5.0 (Linux; Android 12; ONEPLUS A6000) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Mobile Safari/537.36

To fix my issue, I had to use if $_SERVER['HTTP_X_REQUESTED_WITH'] is set.

hisorange commented 2 years ago

Sadly this is not a clear cut. After digging into the topic, the inApp for android is just a good guess nothing else, as the implementation changing version to version.

I have added multiple new detector refinements and tests, but that's the best we can do for now.