Mas0490
Mas0490

Reputation: 86

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 ???

Upvotes: 1

Views: 1970

Answers (1)

Iqbal hossain
Iqbal hossain

Reputation: 1816

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"/>

Upvotes: 5

Related Questions