cordova-plugin-country

1.1.0 • Public • Published

cordova-plugin-country

Get the 2-letter ISO code from Android's Locale package. Useful when your device may not have GPS or cellular data.

Usage

function success (countryCode) {
  console.log(countryCode);
}
 
function error () {
  console.warn('An error occured');
}
 
plugins.country.get(success, error);

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i cordova-plugin-country

      Weekly Downloads

      2

      Version

      1.1.0

      License

      MIT

      Last publish

      Collaborators

      • cloakedninjas