Search code examples
tizentizen-wearable-sdk

How to get information(Model, Serial, ...) of Samsung Gear S3 smartwatch?


I am trying to get the information(Model number, Serial, ...) in a tizen application running on Gear S3. On the watch, this information can be found - Settings -> Gear info -> About Device

Is there any method or API to get the value in a tizen application ?


Solution

  • Tizen'SystemInfo' API provides such System Information.You can check SystemInfo Web API documentations:

    SystemInfo API: Tip&Tech

    SystemInfo Web API Guide

    SystemInfo Web API References

    Here's a sample code to get model number and software version. You can check in the API references for the specific properties you are looking for (only if they are available).

     function onSuccessCallbackBuild(info) {
             alert("Model:" + info.model+ "\n"+"Manufacture:"+ info.manufacturer+ "\n"+"Build:"+ info.buildVersion);
         }
    
     function onErrorCallback(error) {
             alert("Not supported: " + error.message);
         }
    
     tizen.systeminfo.getPropertyValue("BUILD", onSuccessCallbackBuild, onErrorCallback);
    

    There is also Tizen native API for System Information. May have a look If you are going for a Tizen Native application.

    SystemInfo Native API Guide

    SystemInfo Native API References