diff --git a/CoreWLANWirelessManager/CoreWLANWirelessManager/AppDelegate.cs b/CoreWLANWirelessManager/CoreWLANWirelessManager/AppDelegate.cs index 8a94589..0d071f7 100644 --- a/CoreWLANWirelessManager/CoreWLANWirelessManager/AppDelegate.cs +++ b/CoreWLANWirelessManager/CoreWLANWirelessManager/AppDelegate.cs @@ -3,6 +3,7 @@ using CoreGraphics; using Foundation; using AppKit; using ObjCRuntime; +using CoreLocation; namespace CoreWLANWirelessManager { @@ -13,6 +14,12 @@ namespace CoreWLANWirelessManager public AppDelegate () { } + + public override void WillFinishLaunching(NSNotification notification) + { + var manager = new CLLocationManager(); + manager.RequestAlwaysAuthorization(); + } public override void DidFinishLaunching (NSNotification notification) {