xamarin ios open location service settings page

uzairali001uzairali001 Member ✭✭
edited December 2018 in Xamarin.iOS

I want to open location service mobile specific settings page not application's. I need it for iOS > 8.0
currently I'm using this but it opens application specific location setting

var WiFiURL = new NSUrl("prefs:root=WIFI");
if (UIApplication.SharedApplication.CanOpenUrl(WiFiURL))
{   //Pre iOS 10
    UIApplication.SharedApplication.OpenUrl(WiFiURL);
}
else
{   //iOS 10
    UIApplication.SharedApplication.OpenUrl(new NSUrl("App-Prefs:root=WIFI"));
}
Tagged:

Best Answer

Answers

Sign In or Register to comment.