Xamarin Wrapper for Scanner SDK (Android & iOS) - BTLE opmode crashes Android app

B Brett Changus 8 months 1 week ago
100 0 0

We are using the Xamarin Wrapper for Scanner SDK and it is working as expected for iOS. However, on Android, the app crashes when the operation mode is set to OPMODE_BTLE, i.e.

ScannerSdk.ScannerManager.SetOperationMode(OpMode.OPMODE_BTLE);

The error is:

**Java.Lang.ClassCastException:** 'android.app.Application cannot be cast to com.zebra.scannercontrol.IDcsScannerEventsOnReLaunch'

The same thing happens if OPMODE_BTLE is selected in the sample XF scanner control app.

According to the docs, BTLE is supported.

https://techdocs.zebra.com/dcs/scanners/xamarin-scanner/getting-started/#createxamarinandroidformproject

I think it is a problem with the SDK, is there a workaround or fix planned?

Related ticket:
https://developer.zebra.com/content/android-why-must-context-implement-idcsscannereventsonrelaunch

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