Last active
October 5, 2016 20:18
-
-
Save adrianfaciu/5352ddb279295bd2d7b627bc2053acb6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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