buttplug-csharp icon indicating copy to clipboard operation
buttplug-csharp copied to clipboard

Xamarin Assembly Scanning is Unsupported

Open narcoticpopcorn opened this issue 5 years ago • 1 comments

I ran into a hiccup getting started, it may be nice to specify in the docs, or with a friendly exception, that a DeviceSubtypeManager must be specified in Xamarin. The assembly scanning code errors out with what looks like a file permission error but is actually just unsupported behavior. I also think dynamic loading of assemblies is against TOS for IOS and possibly unsupported in general.

Working example

var connector = new ButtplugEmbeddedConnector("Embedded Server");
// Without this line (or one like it specifying a subtypemanager), StartScanningAsync will error out with an UnauthorizedException
connector.Server.AddDeviceSubtypeManager((lm) => new XamarinBluetoothManager(lm));
Client = new ButtplugClient("Embedded Client", connector);

narcoticpopcorn avatar Sep 19 '20 05:09 narcoticpopcorn

Ugh, scanning bites us again.

BTW, a heads up, the C# library is going to be an FFI shim on top of Rust soon. I'm hoping I can still support xamarin that way, but things may get a bit bumpy for a while.

qdot avatar Sep 19 '20 16:09 qdot

Moving to client only impl. Marking wontfix and closing.

qdot avatar Dec 27 '22 21:12 qdot