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 triggered is false — use that to fall back to ordinary web navigation.

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

if (!result.triggered) {
  window.open("https://example.com/pricing", "_blank");
}