This application shows how to configure the DataWedge service through the DataWedge API on a Zebra mobile device with a Xamarin application. Compare this with the Android equivalent of this example.
This application will only work on Zebra Android mobile devices running DataWedge 6.3 or higher. To check your datawedge version, launch the DataWedge application then go to the menu (3 dots), then 'about':
It is possible to use a version of the DataWedge APIs that work on 6.0 or higher, for the sake of simplicity I have used the more recent 6.3+ APIs in this example but you can see the 6.0+ APIs in my more fully featured project (Note the more fully featured project is Android only).
This application depends on DataWedge sending keyboard output to the application after a successful scan. Vysor has been known to interrupt this workflow, it is recommended to uninstall Vysor or ensure a non-Vysor keyboard is selected (you may need to select the Vysor keyboard and then re-select the Google keyboard):
Unless you have changed any of the DataWedge configuration on the device, this application will use the default profile (Profile 0) with:
If you have changed any of these settings then you may find the application does not work e.g. disabling keystroke output or disabling the default profile.
There are multiple ways to resolve this including: