I want to open galaxy watch app from my app.
What is the valid url scheme.
Eg: For opening lenskart app url scheme is “lenskart://”
I want to open galaxy watch app from my app.
What is the valid url scheme.
Eg: For opening lenskart app url scheme is “lenskart://”
This should work:
function openURLonPhone(url) {
var appid = “com.samsung.w-manager-service”;
var type = “phone”;
var extra_data = [
new tizen.ApplicationControlData("msgId", ["mgr_install_host_app_req"]),
new tizen.ApplicationControlData("type", [type]),
new tizen.ApplicationControlData("deeplink", [url])];
var appControl = new tizen.ApplicationControl(
"http://tizen.org/appcontrol/operation/default",
null,
null,
null,
extra_data);
var appControlReplyCallback = {
onsuccess: function(data) {
console.log("launchUrl reply success");
console.log("success: data = " + JSON.stringify(data));
},
onfailure: function() {
console.log("launchUrl reply failed");
}
};
try {
tizen.application.launchAppControl(
appControl,
appid,
function() { console.log( "launchUrl success"); },
function(err) { console.log( "launchUrl failed: " + err.message); },
appControlReplyCallback);
}catch(err) {
console.error("[launcher] " + err);
}
}