How to open wifi list in settings app from my app in iPhone and iPad?

suneel_kumar_reddysuneel_kumar_reddy USMember ✭✭
edited September 2016 in Xamarin.iOS

Hi All,

I have one doubt how to open list available wifi screen from my app?

I have used below line that works fine in iPhone devices which are below the version 10.

UIApplication.SharedApplication.OpenUrl(new NSUrl("prefs:root=WIFI"));

In iPad it's not working at all.

Now I need this to be working well in both in iPhone and iPad devices irrespective of the version.

Can anyone help me to solve this problem?

Thanks,
Suneel Kumar Biyyapu.

Tagged:

Answers

  • HortinzHortinz GBMember ✭✭

    Did your app actually went through the app store without being reject using that line of code? Anyway that's not supported, officially. And it looks like they removed it on iOS 10

  • Hi @Hortinz,

    Thanks for your advice. Actually I know that as that won't support from iOS 10.

    I need solution to open wifi settings screen in all cases irrespective of version of ios and device of ios.

    Thanks,
    Suneelkumar Biyyapu.

  • JohnHardmanJohnHardman GBUniversity ✭✭✭✭✭

    @suneel_kumar_reddy - Did you find a solution for this? I am finding that if I use UIKit.UIApplication.OpenSettingsUrlString navigation to settings is working, but anything of the form "prefs:root=Privacy&path=CONTACTS" is failing. I'd like to be able to navigate directly to the appropriate part of the settings, rather than the root of the settings.

Sign In or Register to comment.