bestiejs / platform.js

A platform detection library.
https://mths.be/platform
MIT License
3.22k stars 408 forks source link

Support Web Application browsers in Devices #176

Open james-mux opened 4 years ago

james-mux commented 4 years ago

Devices such as Amazon Fire TV, Sony Bravia Android TV, WebOS on LG all use a web browser to display applications. At present, most of these are reported as 'Android Browser' on 'Android'.

Is it possible to add further support for these devices, to be more granular?

Agaff commented 4 years ago

user-agent string.

james-mux commented 4 years ago

Here's a few: Mozilla/5.0 (Linux; Android 8.0.0; BRAVIA 4K UR2 Build/OPR2.170623.027.S63; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/79.0.3945.93 Mobile Safari/537.36 is a Sony Bravia Android TV

Mozilla/5.0 (Linux; Android 9; SHIELD Android TV Build/PPR1.180610.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/79.0.3945.93 Mobile Safari/537.36 is an Android Nvidia Shield device

Mozilla/5.0 (Linux; Android 7.1.2; AFTMM Build/NS6268; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/70.0.3538.110 Mobile Safari/537.36 is an Amazon Fire TV device

Thank you!