Open links

Open URLs, deep links, and native screens from your app.

Fall back to web navigation

These calls resolve to a NativeCommandResult (see Handling results for its fields). Outside the app the result comes back skipped or pending — use that to fall back to ordinary web navigation.

const result = await bdk.navigation.openLink({
  link: "https://example.com/pricing",
  view: "website"
});

if (result.skipped || result.pending) {
  window.open("https://example.com/pricing", "_blank");
}