cloakedninjas / cordova-plugin-country

Cordova plugin to determine country without cellular network or GPS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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);

About

Cordova plugin to determine country without cellular network or GPS


Languages

Language:Java 63.5%Language:JavaScript 36.5%