BDK Native SDK

Call native iOS and Android features from your web app with a typed JavaScript SDK.

What is @bdk/native?

A typed JavaScript SDK for calling native iOS and Android features — camera, location, biometrics, in-app purchases, push, and deep links — from a web app running inside the BDK Native shell.

Use the browser SDK in your front-end, and the server SDK for trusted backend work like receipt verification.

npm install @bdk/native

Where to start

New to the SDK? Start with the Introduction, then Installation and Initializing the client. Otherwise, jump straight to any feature in the Browser SDK section.

Some results arrive asynchronously on an event — subscribe before you make the call.

// Subscribe to results that arrive asynchronously…
bdk.on("photoCaptured", (photo) => console.log(photo.fileUrl));

// …then dispatch the native command.
await bdk.media.capturePhoto();