Using Zebra Scanners with non Zebra devices on Android or iOS?

Then maybe this enhanced .NET MAUI version of the Zebra Scanner SDK for Xamarin/MAUI is for you!

Background

A couple of years ago, when upgrading a Xamarin application to .NET MAUI, the Zebra Scanner Xamarin Wrapper (Android and iOS) was not yet migrated to .NET MAUI, so this library was created. Zebra have since then released the .NET MAUI Wrapper for Scanner SDK (iOS and Android) package. That package is not distributed as a common NuGet package and is not updated in the same pace as the native Android/iOS libraries, therefore this library is still maintained as a convenient complement.

Library

The library is available both as a NuGet package and a MIT licensed repository at GitHub.

Name Nuget GitHub Support
ZebraScannerSDK.Maui NuGet GitHub Release Date Buy Me A Coffee

What’s included?

Compared to the original solution we have some enhanced and added features:

  • One easy to use NuGet package.
  • Easy setup with service collection extension.
  • New IScannerSDK interface registered for constructor injection with DI.

  • New sample app.

Setup

Use the AddZebraScannerSDK service collection extension method for library configuration.

var builder = MauiApp.CreateBuilder();
builder
    .UseMauiApp<App>()
    .ConfigureFonts(fonts =>
    {
        fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
        fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
    })

    //Add Services
    builder.Services.AddZebraScannerSDK();

For further documentation, see the Official Zebra Resources or the Sample application.

Sample

Look at the Sample project for a example of how to use this library in an .NET MAUI application.

Main View Pairing View

Official Zebra Resources