https://github.com/cloakedninjas/cordova-plugin-country
Cordova plugin to determine country without cellular network or GPS
https://github.com/cloakedninjas/cordova-plugin-country
Last synced: 23 days ago
JSON representation
Cordova plugin to determine country without cellular network or GPS
- Host: GitHub
- URL: https://github.com/cloakedninjas/cordova-plugin-country
- Owner: cloakedninjas
- Created: 2015-07-03T11:25:28.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-12-07T10:29:47.000Z (over 8 years ago)
- Last Synced: 2024-11-07T07:51:51.282Z (6 months ago)
- Language: Java
- Homepage:
- Size: 4.88 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 #
```javascript
function success (countryCode) {
console.log(countryCode);
}function error () {
console.warn('An error occured');
}plugins.country.get(success, error);
```