언어 설정

Menu
Sites
Language
How to call up system's SMS compose capabilities

Now I need to let user send some text via SMS message, how to do that in Web App? I found a link for Native App

https://developer.tizen.org/dev-guide/2.2.0/org.tizen.native.appprogramming/html/guide/app/appcontrol_message.htm

But could not find the corresponding help material for Web App. Could someone point me in the right direction?

Responses

4 댓글
talari praveen kumar

Hi 

Refer the following tutorial to send text sms in web applications

https://developer.tizen.org/dev-guide/2.2.0/org.tizen.web.device.apireference/tizen/messaging.html

talari praveen kumar

Hi

You can use the below code

 var appControl = new tizen.ApplicationControl(
             'http://tizen.org/appcontrol/operation/compose',
             null,
             "text/html",
             null,
             [new tizen.ApplicationControlData("http://tizen.org/appcontrol/data/text", ["hai"]), new tizen.ApplicationControlData("http://tizen.org/appcontrol/data/subject", ["My Subject"])]
             );

             serviceCB = {
             onsuccess: function () { console.log('OK');  },
             onfailure: function () { console.log('failed'); }
             };

             console.log("Launch service");
             
             tizen.application.launchAppControl(
             appControl,
             "tizen.messages",
             function() {console.log("launch application control succeed"); },
             function(e) {console.log('launch appControl failed. Reason: ' + e.name)},
             serviceCB
             );

Imgen Tata

Thanks very much for your detailed response, Talari, will try use this right away. 

Imgen Tata

This code works like a charm, thanks for your great help!