Xamarin IOS BluetoothDiscoverer error

R Robert Steenkamp 3 years 7 months ago
60 0 0

We are currently developing a Xamarin Cross platform app in Android and iOS. The Android side of things has been implemented and I've begun implementing the iOS specific side of things and I'm running into a problem when trying to discover printers. I've used the recommended code from the SDK:
 
BluetoothDiscoverer.Current.FindPrinters(null, handler);
 
but it finishes immediately and a message in the debug window appears with: Couldn't find the "com.apple.private.externalaccessory.showallaccessories" entitlement
I have googled this extensively and this is an issue with iOS 10 that should be solved by adding the following to the info.plist:
 
NSBluetoothPeripheralUsageDescription
  Access Bluetooth
  UIBackgroundModes
 
  external-accessory
 
  UISupportedExternalAccessoryProtocols
 
  com.zebra.rawport
  com.zebra.protocols
 
 
Which is also what the Zebra guide recommends I add, and I have.
I've also run the following code:
 
EAAccessoryManager mgr = EAAccessoryManager.SharedAccessoryManager;
var accessories = mgr.ConnectedAccessories;
 
which is the usual place where this error appears for others, the error does appear here too but it's still able to find the printer (iMZ320)
 
Does anyone have any advice on what I could be doing wrong?

CONTACT
Can’t find what you’re looking for?