Skip to content

Instantly share code, notes, and snippets.

@thehungrycoder
Created September 2, 2016 02:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thehungrycoder/206e53380b18142be6017734d2ee93a8 to your computer and use it in GitHub Desktop.
Save thehungrycoder/206e53380b18142be6017734d2ee93a8 to your computer and use it in GitHub Desktop.
LocationService.askLocationPermission()
.then(LocationService.getCoords)
.then(function(coords) {
console.log(coords);
})
.catch(function(err) {
console.log(err);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment