Networking and Connectivity Q&A

The following questions are related to implementing networking and connectivity features.

Most Web applications use a network connection to, for example, play media and download files. Because the network connection can disconnect and reconnect unexpectedly, checking the network status regularly is very important for application stability. For information on how to monitor network status changes, see Checking Network Status.

#network connection status #disconnect #reconnect #network state change #internet connection

TV,
HTV

To enable sending requests to external servers, you must add the following lines to your "config.xml" file:

  1. To permit the application to access the Internet, include the following privilege:
<tizen:privilege name="http://tizen.org/privilege/internet"/>
  1. To grant permission to access the external server, define the server URL using the access element:
<access origin="<SERVER_URL>" subdomains="true"></access>

#config xml #external server #access origin #ajax request

TV,
HTV

Yes. You can define the navigator.userAgent string directly.

#user agent string #http header

TV,
HTV

Since 2017 models, the Notifications API is supported on Samsung TVs.

Since 2018 models, the Web standard Push API is also supported.

#notification #notifications api #push #push api #web standard

TV,
HTV

No. Samsung Smart TVs do not support XMPP messaging.

#xmpp #messaging

TV,
HTV

No. Retrieving details about the active Internet connection interface on the TV is not supported.

#connection interface #internet connection #wifi connection

TV,
HTV

When the TV is switched on after being switched off, the network connection does not resume immediately. You can experience network errors, or the application plays the content still in the buffer and stops. To avoid these scenarios, when the application is resumed, make sure you check that the network connection is available before resuming media playback.

#media playback #resume #error #buffer #streaming #disconnect

TV,
HTV