Search code examples
androidsmstizen-wearable-sdksamsung-galaxy-gear

how to send SMS or make a phone call from a samsung gear s app


i am trying to find a way to send SMS and make a phone call from a samsung gear s app.

the documentation is mostly missing and searching for this did not lead to much findings.

has anybody worked with that? is it at all possible?

as an alternative, if the app cannot send SMS or make the call, is it possible to start the default apps (similar to Android intent for SMS/Phone app or iOS openURL).

thanks.


Solution

  • @memical - I have found a workaround to launch message/sms app using the app id.

    <p onclick="hackSMS();">Send SMS</p>
    
    <script>
    function hackSMS() {
        tizen.application.launch("com.samsung.message", function(){console.log ("Launched")});
    }
    </script>
    

    Remember to add this http://tizen.org/privilege/application.launch priviege in your apps config.xml

    Note: I tried other methods also like using exposed tizen platform api's for web apps to launch some predefined app control. But it is working for Call and not for sms.