Hello, I’ve researched and followed these documents:
-
I added the privilege
http://tizen.org/privilege/application.launch
to the config.xml -
I added simple JS for the sample app to test on a Samsung device. I take the package ID of the youtube app to try to navigate from my sample app to the youtube page in the Tizen Store (9Ur5IzDKqV)
My code:
function requestAppStore(appStoreUrl) {
var appControl=new tizen.ApplicationControl(
'http://tizen.org/appcontrol/operation/view',
appStoreUrl,
null,
null,
null
);
var storeId='org.tizen.tizenstore';
try {
tizen.application.launchAppControl(
appControl,
storeId,
function () {
console.log('Succeeded to Launch your app on appStore.');
},
function (err) {
alert('Service launch failed: '+''+err.message);
},
null
);
} catch (exc) {
console.log('Failed to launch your app on appStore.');
alert('AppControl Exception:'+exc.message);
}
}
/*For example package Id of facebook app ‘com.facebook.tizen’ is used, replace it with your application’s package Id.*/
var applicationPackageId = '9Ur5IzDKqV'; //or your application's Package ID
var appStoreUrl = 'tizenstore://ProductDetail/' + applicationPackageId;
requestAppStore(appStoreUrl);
/*Add this privilege on your config.xml
<tizen:privilege name="http://tizen.org/privilege/application.launch"/>
*/
After connecting to Samsung TV using Tizen Studio, the alert exposes with the message: Service launch failed: - No matched application found
Please help me check if I have any mistakes while following the document. Thanks in advanced