-
-
Notifications
You must be signed in to change notification settings - Fork 895
How can i get ACCESS_FINE_LOCATION permission #747
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
Comments
Hi @BaroneX, Could you provide some more information? How are you requesting permissions (code snippet)? did you add the Answering these questions wil help us help you. |
I have add
Through the code above, I got the location permission, but I couldn’t get the wifiName |
Hi @BaroneX, I copied your code snippet, and tested what you wanted. When you request the I added a piece of code at the bottom of your code snippet which is able to get the WifiName of the network you're currently on. I did use the your code snippet (with a few changes) and my code added at the bottom will look like this:
This did output my wifi name in the console. If this doesn't work for you, can you try to type in your terminal |
Hi @BaroneX, I tested my code snippet again and it works for me like it should work. On Android 12 however, they changed things up a bit. If you request the This is how I tested it:
If this does not help you out, can you give me more information about your 'setup' ? |
I was facing a similar problem. It turns out, another library "flutter_blue" had android:maxSdkVersion="30" for ACCESS_FINE_LOCATION. during the final apk compilation, AndroidManifest.xml had
so the permission popup had only "approximate" location and once you grant it, SSID and BSSID gives .. to grab the SSID and BSSID ACCESS_FINE_LOCATION (precise) permission is needed. |
Right now a have this problem on iPhone 12... |
@kostov do you have “com.apple.developer.networking.wifi-info" capability in your profile? |
@kakopappa Which profile you mean? In case of precise location is chosen, network_info_plus works fine. |
Hi @kostov, This is a different issue, the original poster is discussing an issue on Android not on iOS. Meaning this is not related to the issue you are facing. Having a quick glance at the network_info_plus README, they mention the following:
This means that for the P.S. to open your project in Xcode, take the following steps:
|
Some additional information to help debug the original issue. It is possible (as mentioned be @kakopappa) that other plugins override configuration made in the If you have listed all permissions in the I will be closing this issue as this is not related to the permission_handler and out of our hands. |
@mvanbeusekom "Access WiFi information" is added (I just add it and forgot). If it would be not, as I said to kakopappa, it would be impossible the network_info_plus can work at all (.getWifiDSSID and .getWifiName).
And look at #984 :) |
Aha I think I understand now, what you are asking for is the option to validate if the user allowed precise or approximate permission so you can make further decisions on the return value. Is this correct? |
@mvanbeusekom Yes. |
Hi @sri909 This is a Flutter library won’t work for react |
Uh oh!
There was an error while loading. Please reload this page.
💬 Questions and Help
How can i get ACCESS_FINE_LOCATION permission?
i want to get wifiname by wifi_info_flutter/network_info_plus plugin,but i can't get fine location permission.
The text was updated successfully, but these errors were encountered: