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?
Select Settings. From the Settings screen, select Apps. Press the up arrow or down arrow button to highlight the app you want to close, and then press Enter button. Select Force stop.
The easiest way to change the background on your Samsung Smart TV is by using the SmartThings app. Tap on the Menu Icon, then Ambient Background, then choose the wallpaper you want from the list.
There are 2 ways to terminate a TV application: Through user interaction, when the user long-presses the remote control "Return/Exit" key. Long-pressing the "Return/Exit" key forces the application to terminate. Do not register the "Return/Exit" key long-press.
On the supplied remote control, press the HOME button. At the HOME screen, select the Apps icon OR press and hold the HOME button to open the list of installed apps. Press the left, right, up, or down arrow buttons to highlight the app you want to close.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With