Skip to content

Scannr ​

Scannr is an app for ID scanning to obtain data from driver's licences. Protocol Launcher allows you to generate the official Scannr URL scheme links documented as scannr:// and scannr://?callbackScheme=<foo>.

Usage ​

There are two ways to use this library:

  • On-Demand import from subpaths enables tree-shaking and keeps bundles small.
  • Full Import from the root package is convenient but includes all app modules.

Pick On-Demand for production builds; Full Import is fine for quick scripts or demos.

Select Installation Method

On-Demand
Recommended. Optimized for production.
Full Import
Convenient. Good for quick scripts.

Scan ID ​

Launch Scannr with the Android URL scheme documented as scannr://.

On-Demand
ts
import { scanId } from 'protocol-launcher/scannr'

const url = scanId()

Scan ID with iOS Callback ​

Launch Scannr with the iOS URL scheme documented as scannr://?callbackScheme=<foo>. The calling app must define the foo URL scheme and follow Scannr's LSApplicationQueriesSchemes setup.

On-Demand
ts
import { scanId } from 'protocol-launcher/scannr'

const url = scanId({
  callbackScheme: 'foo',
})

Official Documentation ​