-
Notifications
You must be signed in to change notification settings - Fork 19
Launch Your .NET Application on Samsung Smart TV
To .NET and Xamarin.Forms developers, we are very excited to share how to run Xamarin.Forms applications on the actual Samsung Smart TV 2018 models.
Running Xamarin.Forms applications on the TV product will help Xamarin.Forms to extend its influence to the world.
Try out and feel the remarkable moment to run your applications on the Samsung Smart TV!
If you have a Tizen project already added on your application, you are ready to go. Or the generous blog is right here to help you with adding the Tizen project.
⚠️ .NET app is only supported on Samsung Smart TV 2018 or later models which use Tizen 4.0 as a platform.
See here for a detailed support model.
If you are totally new to develop a Tizen .NET application, start by browsing the Tizen development guides and installing Visual Studio Tools for Tizen.
If you have Visual Studio Tools for Tizen
installed, you are almost done for the development environment.
If you are not, install the extension tool first. Installing Tizen SDK automatically follows after.
No extension tool for Visual Studio for Mac is provided. You should download and install Tizen SDK
on here.
Now, check out 2 more extensions on Tizen Package Manager
(Tools > Tizen > Tizen Package Manager)
For Mac users, launch the
package-manager
on Mac.
- Samsung TV Extension
- Samsung Certificate Extension
You can find the extensions on "Extension SDK" tab, and install those if they are not.
You can connect your SDK to a TV device as a remote device. Before you connect to the TV, make sure
- your computer and the TV are on the same network.
- you prepare a certificate profile.
- Enable Developer Mode on your TV device
-
Open the "Smart Hub".
-
Select the "Apps" panel.
-
In the "Apps" panel, enter "12345" using the remote control or the on-screen number keypad. You will then see the secret popup appears. 😮
-
Switch "Developer mode" to "On".
-
Enter the host PC IP which you want to connect to the TV, and click "OK".
-
Reboot the TV.
-
After the reboot, open the "Apps" panel and check out the "Developer Mode" is marked at the top of the screen.
-
Connect the TV to SDK
-
On your Visual Studio, go to "Tools > Tizen > Tizen Device Manager".
For Mac users, launch
device-manager
on Mac. -
Click "Remote Device Manager" and "+" to add a TV.
-
In the "Add Device" popup, enter the information for the TV you want to connect to and click Add.
-
Back to the Device Manager window, select the TV from the list, and switch "Connection" to "On".
-
When the TV is successfully connected, you can see the TV is connected as a device on the Visual Studio toolbar.
Now you are ready to launch your applications on the TV. What a moment!
On window, you have everything prepared by connecting the TV as a device. You can launch your application right through the Visual Studio. I normally use the shortcut, Ctrl + F5
, to quickly start the application.
Debug mode will be available in the future
You can use Terminal to install and launch the application, because no Tizen extension tool is provided for Visual Studio for Mac. After building the Tizen project, go to Terminal, move to the output folder and execute the commands like following.
MacBook:~ jay$ sdb install org.tizen.example.Hello.Tizen-1.0.0.tpk
MacBook:~ jay$ sdb shell 0 execute <APP_ID>
sdb
tool is located where Tizen Studio is installed, for example~/tizen-studio/tools/
.
You can check the
<APP_ID>
in thetizen-manifest.xml
file.
The application you installed on the TV will be automatically removed when the TV is turned off and on with cold boot.
The most tricky part will be to find a TV around you or maybe to get a new one, but you will find it worth to try launching your .NET applications on the Samsung Smart TV. If you are a Xamarin.Forms developer, you are also a TV application developer from now.
Next time I will come up with Publishing Your TV Application.