18

I have an application on Samsung Smart TV. I'm fetching data from web service and display this data in my application.

I'm fetching the data periodically and updating the application accordingly.

I want to run this operation as a background process, so it'll download the data and if there is an update, I warn the user when s/he watching TV.

The other thing I want is to start application on TV launch, is it possible?

4
  • thanks for adding the tag. I was afraid 31 followers were not enough ;) btw what exactly is the OS ?
    – olamotte
    Oct 8, 2012 at 11:09
  • It's samsung's firmware installed on Smart TV. Can run HTML, JS, CSS or seperate Flash Movie file.
    – totten
    Oct 9, 2012 at 6:21
  • Hi, did you find a solution for running the app in the background?
    – julius_am
    Nov 14, 2013 at 13:51
  • Ticker application is doing what I want. One thing not possible is to add app to start-up of TV.
    – totten
    Nov 14, 2013 at 20:52

5 Answers 5

7

Only 'ticker' type application can run in background. It is not supported in Europe and will not pass certification for Samsung Apps store.

Samsung Smart TV suppots push-notifications (samsungdforum.com/Guide/art00080/index.html). It will allow you to show popup-message on screen with ability to launch your application.

4

You cannot auto-start application on TV launch.

The only way is to use custom firmware like SamyGo (http://www.samygo.tv/)

About the "background process"... as far as we assume that JavaScript's setTimeout or setInterval can be used to execute application's "internal" background process, there is no problem - Just DO it! :)

But if you were thinking about system's background process - for ex. crontab of device - it's impossible.

1
  • Does it have support for the webworker html5 api in the sdk? If so, that'd be preferable to setInterval. Oct 23, 2012 at 7:43
4

for your second doubt Auto launch of the application is supported in ticker applications only and there is property in config file of the ticker widget :

"<ticker itemtype="boolean">y</ticker>"

if u mark it as y(as above) than you can set up auto launch of the app from Menu->smart Hub->Apps settings->auto ticker. in 2014 Samsung Smart TV models.

2

Since Tv has limited memory I wont recommend background process like setInterval or setTimout. You may have refresh button for the same. And They must have some js api for controlling internal method of tv application (not sure). Anyway if you really want to use interval/timeout dont forget to clear it.

1

As it shown here, WebSocket is supported by Samsung Smart TV. Your server application can trigger TV application when an update is appear. It is more efficient way than polling server with ajax for your case.

(Edit) I wrote a sample application to demonstrate: https://github.com/aksakalli/socket.io-hello-world

(Edit 2) I see that your problem is about platform limits. My answer is just about approaches that can be applied then I have very limited experience on Samsung Smart TV.

2
  • WebSockets are supported beginning from SDK 2012 (leaving 2011 & 2010 devices unsupported). Furthermore, the support is not identical in all devices, not even in devices having the same model number. Some devices support only the older hixie-76 version of the WebSocket protocol (which is only supported by a few servers).
    – simon
    Apr 18, 2013 at 11:38
  • Socket.IO can be used as a cross-browser WebSocket like API for that case. It respectively tries websocket, Flash, Long polling... etc then find a way to support a socket like application. I wrote a sample code at github to test on a TV Browser and it worked fine on many TVs that connected to it. github.com/aksakalli/socket.io-hello-world Jul 1, 2013 at 13:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.