I know Samsung TV can launch Netflix and Youtube via DIAL protocol.
My question is, is there any other apps that can be launched via DIAL?
If so, Can my app also to be launched via DIAL if my app is on DIAL registry?
Thanks.
I know Samsung TV can launch Netflix and Youtube via DIAL protocol.
My question is, is there any other apps that can be launched via DIAL?
If so, Can my app also to be launched via DIAL if my app is on DIAL registry?
Thanks.
Yes, if the app is published you can find it’s app id somewhere in the samsung registration page. If it’s not published you can use the tizen application id from the config.xml. For example if the ip of the tv is 192.168.1.2 and the app’s id is 123456 you can launch using…
curl --verbose -L 'http://192.168.1.2:8001/api/v2/applications/123456' -X POST -H 'Content-Length: 0' --data-raw ''
Thanks @jat1592579561 ! It really works.
@jat1592579561 Does this work with only development-connected IP? (which can be set on Apps panel on TV, https://developer.samsung.com/smarttv/develop/getting-started/using-sdk/tv-device.html)
I tried API call with another machine which is not with the development-connect IP and it returns 401 unauthorized.
I’m curious if it only works with development-connected IP which makes it useless…
I just did a factory reset on my tv, downloaded my app from the store, and was able to launch just fine without having to do anything else. It does prompt on screen to allow the connection the first time, but if you click allow then it launches the app fine.
DIAL allows arguments to be passed to a launched application. How can I access the arguments passed in a Samsung TV Web Application?
I’m using the following command to launch the app:
curl --verbose -d ‘{“key1”:“value1”, “key2”:“value2”}’ -H “Content-Type: application/json; charset=utf-8” -X POST ‘http://<TV_IP>:8001/api/v2/applications/’
I tried this API call in my TV app but the arguments I passed in the curl command are not in retData.
reqAppControl = tizen.application.getCurrentApplication().getRequestedAppControl();
retData = reqAppControl.appControl.data;
Hello, may I ask if you can help me answer these questions? Sincerely seeking help: