зеркало из https://github.com/xamarin/mac-samples.git
As part of MacOS Catalina changes, it is now required to have location access to see BSSID data. Fixes #129.
This commit is contained in:
Родитель
c9216f3aa4
Коммит
888d27ed96
|
@ -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)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче