VKR
VKR

Reputation: 685

Can barcode scanning be achieved with just C# code in Blazor WASM, or is it necessary to use JSInterop and use a JS barcode library instead?

I am trying to implement a QR scanner in my Blazor PWA app to be used on mobile. Are there any libraries available for this?.

if there is no Blazor nuget library i am planning on using a javasccript library and use IJSRuntime.

please suggest.

Upvotes: 2

Views: 5769

Answers (2)

LordSilvermort
LordSilvermort

Reputation: 277

I've used JsInterop with QuaggaJS for a bar code scanner. Currently, I don't think that there is an available Nuget package for Blazor that can achieve this.

Upvotes: 4

Justin
Justin

Reputation: 565

I've used this before and it worked wonderfully:

https://github.com/jackyef/rqrr-wasm

Upvotes: 0

Related Questions