Reputation: 2989
I try to build a BLE app with expokit. This part of code is throwing me this error: Error: Tried to use permissions API but the host Activity doesn't implement PermissionAwareActivity.
How am i supposed to fix this?
I've tested it in an android device, can't test this on iOS.
PermissionsAndroid.request(PermissionsAndroid.PERMISSIONS.ACCESS_COARSE_LOCATION).then((result) => {
if (result) {
console.log("User accept");
} else {
console.log("User refuse");
}
});
Upvotes: 0
Views: 1806
Reputation: 2989
I've found a solution here but If someone has a solution without touching at native code it could be way better.
Upvotes: 2