Skip to content

Tizen API: Network

zuzu_yun edited this page Mar 21, 2017 · 2 revisions

For converting Network API of tizen to TOAST API, please refer to the followings.

Cordova spec (cordova-plugin-network-information)

Please note that network-information plugin is based on cordova spec. If you want get more details for usage, refer cordova-plugin-network-information

privilege

Please add following privilege in the config.xml

<tizen:privilege name="http://developer.samsung.com/privilege/network.public"/>

getActiveConnectionType

  • Before

    var activeType = webapis.network.getActiveConnectionType();
  • After

    var activeType = navigator.connection.type;
Clone this wiki locally