-
Notifications
You must be signed in to change notification settings - Fork 5
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
Manifest error #1
Comments
I am getting the await AndroidWifiInfo.ssid and await AndroidWifiInfo.macAddress as null when running on device Oneplus5T, Samsung, Redme Note5 PRO. Please suggest some solution. |
The
As this plugin is just a wrapper around the See the docs for more info. |
Regarding the SSID. I'm planning to solve this issue within the plugin, but in case you need a quick solution, you can try it on your own. Here are some guidelines. It's probably another permission issue. First of all, check if the phones are connected via WiFi. I assume you checked it already and there's an issue with a plugin.
Please let me know if the issue persists. In case one of my recommendations helped, please leave a comment, it'll help others to solve their issues until I get to fix the issue (and it'll also help me fix the problem on a "plugin" level so that we automatically request the proper permissions on runtime) |
Hi, I have tried all the above solution but still I am getting the "AndroidWifiInfo.macAddress as null" when I am using the "android_wifi_info" dependency but when I am using the wifi_info as the dependency in flutter i am getting error while importing the package" |
Could you fix the SSID issue? Which alternative solution fixed your issue finally? As I tried to say, the You can create the |
If you receive nulls for the WiFi BSSID, you can request permissions for location, then try again. There are multiple plugins out there that let you request permissions from the host, one I used is: https://pub.dartlang.org/packages/permission_handler # pubspec.yaml
dependencies:
# ... your other dependencies ...
permission_handler: ^3.0.1 You can request permissions like: await PermissionHandler().requestPermissions([PermissionGroup.location]); Once you asked for these permissions, this plugin should be able to receive the WiFi BSSID and SSIDs |
On modern Android devices, requesting permissions runtime for the location should solve the issue for WiFi BSSID. The MAC address being null is pretty much a restriction from the Android platform, AFAIK, there is not much we can do. In my opinion, we can close this issue, once these issues are documented better. @neelu004 Let me know if asking permissions runtime solve your problem with the WiFi BSSID. |
I had to manually add this permission to my app's manifest:
Without that, I received:
The text was updated successfully, but these errors were encountered: