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

Can't detect Smart TVs #464

Open
burakbas opened this issue Feb 7, 2021 · 0 comments
Open

Can't detect Smart TVs #464

burakbas opened this issue Feb 7, 2021 · 0 comments

Comments

@burakbas
Copy link

burakbas commented Feb 7, 2021

Bowser.parse platform output is empty when parsing Smart TV User Agents. I used example user agent strings in this URL.
https://developers.whatismybrowser.com/useragents/explore/operating_platform/smart-tv/

Example code

var ua = "Mozilla/5.0 (SMART-TV; Linux; Tizen 2.4.0) AppleWebkit/538.1 (KHTML, like Gecko) SamsungBrowser/1.1 TV Safari/538.1";
var parsedResult = bowser.parse(ua);
console.log(parsedResult);

// outputs
{
  browser: {
    name: "Samsung Internet for Android"
    version: "1.1"
  },
  os: {
    name: "Tizen"
    version: "2.4.0"
  },
  platform: {
  },
  engine: {
    name: "WebKit"
    version: "538.1"
  }
}

// expected output
{
  browser: {
    name: "Samsung Internet for Android"
    version: "1.1"
  },
  os: {
    name: "Tizen"
    version: "2.4.0"
  },
  platform: {
   type: "tv"
  },
  engine: {
    name: "WebKit"
    version: "538.1"
  }
}
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

1 participant