简体   繁体   English

如何在Expo上的android中获取BSSID和SSID?

[英]How to get BSSID and SSID in android on Expo?

I want to get the BSSID and SSID info of an android mobile.我想获取安卓手机的 BSSID 和 SSID 信息。 I am developing my application on Expo.我正在世博会上开发我的应用程序。 Currently I am using react-native-network-info module but its not working.目前我正在使用react-native-network-info模块,但它不起作用。

The library you are using required linking of the module.您使用的库需要模块的链接。 So as of now expo doesn't support linking, hence that library cant be used to extract SSID.所以截至目前,expo 不支持链接,因此该库不能用于提取 SSID。

And according to expo-forum they still don't have any provision to extract the SSID and BSSID with their release.根据 expo-forum 的说法,他们仍然没有任何规定可以在发布时提取 SSID 和 BSSID。 Check out the forum chats :查看论坛聊天记录:

Expo-SSID Expo-SSID

So what I would suggest is try to use the bare react native app(ie not using expo) and install the library of react-native-network-info where things would work.所以我建议尝试使用裸反应原生应用程序(即不使用 expo)并安装react-native-network-info库,在那里可以正常工作。 If you are already into expo and the project is almost done, then I would recommend to eject from expo and then install the library react-native-network-info .如果你已经进入 expo 并且项目几乎完成,那么我建议从 expo 退出,然后安装库react-native-network-info

Hope it helps.希望能帮助到你。 feel free for doubts.有任何疑问。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM