Open SD19767 opened 2 weeks ago
Your screenshot does not correspond to what you say in the subject line.
If Permission.locationWhenInUse.request().isGranted
is false, the app will display Unauthorized to get Wifi Name
which is what you see in the screenshot.
Hi @miquelbeltran 👋,
Thank you for the clarification. Sorry for the confusion in my previous message. I just want to confirm that the sample project is expected to display “Unauthorized to get Wifi Name” when Permission.locationWhenInUse.request().isGranted is false. Is that correct?
I understand that the sample project primarily demonstrates how to use the library, so handling permission requests is outside its scope. I’m just making sure I understand the intended behavior.
Thanks again for your support!
Last time I checked, the sample app was handling the permission correctly, but could be that this is now broken due to changes on iOS.
The README lists several requirements in order to get the SSID: https://github.com/fluttercommunity/plus_plugins/blob/main/packages/network_info_plus/network_info_plus/README.md
You can also check with the permission_handler
package and see if they explain something regarding managing location permissions.
Platform
iPhone 13 Mini running iOS 17.5.1
Plugin
network_info_plus
Version
4.0.1
Flutter SDK
3.22.4
Steps to reproduce
Code Sample
Logs
Flutter Doctor
Checklist before submitting a bug
flutter pub upgrade
flutter clean