Skip to content

Tizen API: ProductInfo

Hyojin Kim edited this page Mar 14, 2017 · 10 revisions

cordova spec (cordova-plugin-device)

For converting ProductInfo API of tizen to TOAST API, please refer to the followings. Please note that device plugin is based on cordova spec. If you want get more details for usage, refer cordova-plugin-device

####privilege Please add following privilege in the config.xml xml <tizen:privilege name="http://developer.samsung.com/privilege/productinfo"/>

####get ModelCode

  • Before

    var model = webapis.productinfo.getModelCode();
  • After

    var model = device.model;

####get Firmware Version

  • Before

    var version = webapis.productinfo.getFirmware();
  • After

    var version = device.version;

####getDuid

  • Before

    var duid = webapis.productinfo.getDuid();
  • After

    var duid = device.uuid;
Clone this wiki locally