Xamarin.Mac ScanForNetworks Doesn't Work When Sandboxed

AllanChin.6924AllanChin.6924 USUniversity ✭✭✭

I've tried both these methods in a sandboxed app and interestingly enough, both calls return a null networks list on 10.12 only.

var mainInterface = CWWiFiClient.SharedWiFiClient.MainInterface;
var networks = mainInterface.ScanForNetworksWithSsid(null, out NSError error1);


var mainInterface = CWInterface.MainInterface;
var networks = mainInterface.ScanForNetworksWithSsid(null, out NSError error2);

the mainInterface.CachedScanResults is also null.

Has anybody else seen this problem and if so, is there a resolution? Again, this seems to be a 10.12 issue only, thus far.



  • ChrisHamonsChrisHamons USForum Administrator, Xamarin Team Xamurai

    What entitlements did you ask for?

    Have you tried com.apple.security.network.client and\or com.apple.security.network.server?

  • AllanChin.6924AllanChin.6924 USUniversity ✭✭✭

    We've asked for both in the Entitlements.

Sign In or Register to comment.