Languages

Menu
Sites
Language
How to get Tizen version via WebApi

Hi there,

I'm trying to get information about Text-to-Speech on a Tizen device (enabled/disabled in settings) through ProductInfo.getSystemConfig. As I found out, this is not possible on Tizen version 2.3 and below. The config key (CONFIG_KEY_ACCESSIBILITY_TTS) just doesn't exist there. So I decided to do it only on Tizens with version 2.4 or above.

My question is: Does anyone know how to get Tizen version from webapis.js please? 

I tried method getVersion() from WebApi.ProductInfo, also TvInfo, AVInfo, actually almost all APIs available in WebApi. I couldn't find the version myself so I'm asking you guys :)

Thanks in advance
Tomas

View Selected Answer

Responses

5 Replies
Marco Buettner

Use https://developer.samsung.com/tv/develop/api-references/tizen-web-device-api-references instead https://developer.samsung.com/tv/develop/api-references/samsung-product-api-references

With Tizen Web API u can use https://developer.samsung.com/tv/develop/api-references/tizen-web-device-api-references/systeminfo-api/

Afaik BUILD includes the Tizen Version. But I will test it at home.

Tomáš Jiříček

Thanks guys, SystemInfo build contains version, unfortunately with some more information that I can't probably programatically strip out

Tomáš Jiříček

An update: SystemInfoBuild doesn't contain version in every Tizen TV. 2015 Tizen TVs don't contain the version at all.

Mark as answer
Armaan-Ul- Islam

You can use SystemInfoDeviceCapability to check platformVersion or webApiVersion. Try this Code Snippet:

var platformVersion=tizen.systeminfo.getCapabilities().platformVersion;
alert(platformVersion);

Add 'system' privilege in config.xml. Deprecation warning may be shown, but it's a working solution for now.