Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getBSSID is not working in android PIE #68

Open
yusuf987 opened this issue Nov 28, 2018 · 6 comments
Open

getBSSID is not working in android PIE #68

yusuf987 opened this issue Nov 28, 2018 · 6 comments

Comments

@yusuf987
Copy link

i am using
"react-native-network-info": "^3.2.2",
my react version is
"react": "16.0.0-beta.5",
"react-native": "0.49.3",

i am using react-native-network-info to get network BSSID
this was wasworking fine untill my user update thier Android OS to Android PIE

it always return 02:00:00:00:01:00 in android PIE devices

anyone has any idea about this

@bbourdel
Copy link

bbourdel commented Dec 5, 2018

Hello,
In fact, the plugins is not working on Android 9. The ssid is <unkwown ssid>,
Any ideas

@pusherman
Copy link
Owner

I don't have a current android device to try to reproduce the error but have you tried resetting your network settings on your device?

@bbourdel
Copy link

Ok, I found some time to search this issue on Pie.
The fact is, since Android Pie, the permission 'android.permission.ACCESS_COARSE_LOCATION' is need to have access to Wifi information.

As, I'm trying to solved it using https://facebook.github.io/react-native/docs/permissionsandroid.
I will tell you as soon as finished to implem it.

Source : EspressifApp/EsptouchForAndroid@f467e1a

@Joao-Leite
Copy link

I've tried to add ACCESS_COARSE_LOCATION permission but I still get an error for BSSID and SSID.
Did you have success with it?

@westcode
Copy link

This does fix the issue. Make sure to add it the the manifest as well as check runtime using PermissionAndroid.

<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

@bbourdel
Copy link

Also, you have to set your localisation active on your smartphone (turn GPS on).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants