You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
async function requestPermission() {
try {
const granted = await PermissionsAndroid.request(
PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION,
{
'title': 'Wifi networks',
'message': 'We need your permission in order to find wifi networks'
}
)
if (granted === PermissionsAndroid.RESULTS.GRANTED) {
console.log("Thank you for your permission! :)");
} else {
console.log("You will not able to retrieve wifi available networks list");
}
} catch (err) {
console.warn(err)
}
}
@nick Wan
Please add more a line bellow to AndroidManifest.xml if you request with ACCESS_FINE_LOCATION: <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
OR
Change request ACCESS_FINE_LOCATION to ACCESS_COARSE_LOCATION when call request permission
It's help
And add these to AndroidManifest.xml
The text was updated successfully, but these errors were encountered: