Skip to content

Instantly share code, notes, and snippets.

@adrianfaciu
Last active October 5, 2016 20:18
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 adrianfaciu/5352ddb279295bd2d7b627bc2053acb6 to your computer and use it in GitHub Desktop.
Save adrianfaciu/5352ddb279295bd2d7b627bc2053acb6 to your computer and use it in GitHub Desktop.
fixPermission(): void {
bluetooth.hasCoarseLocationPermission()
.then((granted) => {
if (!granted) {
bluetooth.requestCoarseLocationPermission()
.then(() => console.log("Location permission requested"));
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment