Languages

Menu
Sites
Language
Detect wearable vs mobile device vs TV ?

Hi,

We have a shared codebase that we're deploying across web, mobile, and both webOS and Tizen TVs.

Is there a way to distinguish in code, whether Tizen is running on a mobile device, a wearable or a TV ? We ask because on TV sets, we'd like to change the authentication flows we want to offer.

Responses

1 Replies
Kosso

Maybe try detecting the screen sizes with `window.innerWidth` or `window.innerHeight` ?