tabris-js icon indicating copy to clipboard operation
tabris-js copied to clipboard

Suppport navigator.connection.type

Open cpetrov opened this issue 5 years ago • 0 comments

Problem description

For apps that work with remote data, it would be advantageous to determine the network state of the user's device in order to be able to e.g.:

  • suggest to the user to turn on his network connection if it is disabled
  • issue a warning when about to download large amounts of data over a cellular connection

This API has been implemented in the cordova-plugin-network-information plugin, but it would be handy to have it in the core framework.

Environment

  • Tabris.js version: 3.5.0

cpetrov avatar May 20 '20 16:05 cpetrov