Closed SuYungCheng closed 1 year ago
I also need that one. But seems like it can only open app settings if there is anything int the app settings - permissions etc.
It's very strange!
I create a native iOS project and it can open general settings. But after I use my flutter project and use channel method to call native code. It goes to app settings.
Maybe like you said , something in the app settings.
But other apps also has that, and it can go general settings.
me too ,Inaccessible WIFI setting , is iOS
Apple does not allow direct access to WIFI settings. They ask that you implement the security description items for WiFi access in info.plist and you need to make a request to user for WiFi access on the device in your code and then when you call openWIFISettings method it will open App Settings but will list the WIFI items there.
Sent with GitHawk
ya, I know it can't access to WIFI settings.
what I want is to open General Settings and don't use the rejecting words "Prefs:root".
It will be reject by apple.
@plinkos you mean if I implement the security for WiFi access in info.plist, I will always open App Settings. Right?
Yes, the settings you have permission granted for will appear in app settings screen.
Sent with GitHawk
@plinkos Thank you for clearing up my confusion.
After I remove the Entitlements.plist for WiFi access, I can go to general settings.
But also make the other issue:
My app need to get WiFi name to let users know.
So I used the package "network_info_plus".
When I remove the WiFi access, the WiFi name return null.
How can I both to get WiFi name and access to general settings?
Like some iot app, it can get WiFi name and also go to general setting?
Check this out: https://developer.apple.com/forums/thread/679038
Thank you @plinkos .
You help me a lot.
I'll try it.
Hope it can work.
I use your github demo code (version 4.1.1) :
AppSettings.openWIFISettings();
can to general settings screen.But in my project, and use the same code :
AppSettings.openWIFISettings();
just always go to app settings?don't know why?
The document says: All options open the current 'app' settings section if there are settings defined. If no current settings are "defined" for the app the iPhone Settings Screen will be displayed.
What does "defined" words mean? how can I "not" to defined current settings?
Thanks!