Search code examples
launchtizen

tizen web app, launch another web application


I was wondering if anyone knows how to launch a web app from another web app at when something like a button press event. I've seen code written in C I think but I would like it in Javascript, unless someone knows a way to run c in html ???


Solution

  • You can do it using App Control API of Tizen Web App. Follow the example

    //main.js

    function onSuccess () {
        console.log(“App Launched”);}
    
    function onError () {
        console.log(“Cannot Launch”);}
    
    var appId=" com.samsung.clocksetting"; // app to be launched 
    
    tizen.application.launch(appId, onSuccess, onError);
    

    // config.xml

    <tizen:privilege name="http://tizen.org/privilege/application.launch"/>