Samsung Smart TV Application Development - Display Notifications on Screen
I am trying to develop an app on a samsung smartphone that can display a notification while watching TV. the notification will contain information about soccer games, twitter messages (can send a message to TV via twitter) and more ...
Smart TV app will get information from web server, I was thinking about using publish / subscribe model:
- I have created an MQTT broker using the NodeJS mosca module.
- I have created two scripts that will be publishers. they will receive information from the web API and publish them by brokers topic.
- The broker sends new messages for each topic to all subscribers, usually a smart TV application.
You can find this project on Github (feel free to contribute if you're interested).
I've never had a smart TV app, so I wanted to know:
- Is there a feature in the Samsung Smart TV SDK that allows notifications to be shown at the top of the screen?
- How do I run an application in the background?
The ideal thing in my case would be a Web API for Smart TV. So that I can call services to display notifications, for example, or other things ...
Thank you for your time!
source to share
App development for samsung smartphones is easy if you are good at html5, css, jquery.
you can show the notification by sending an ajax call after a regular interval (I am not stressing this part, assuming you know about ajax and jquery)
Now when you get to the main question about displaying a notification on top of the screen and running the app in the background, this can only be achieved on a samsung smartphone by setting the vaue y ticker parameter in config.xml
<ticker itemtype='boolean'>y</ticker>
This will allow you to run the application in ticker mode as well as in the background. please go to samsungdforum . Note. Ticker apps are only allowed for the US and Korea market.
source to share