Skip to content
Tauri

onOpenUrl

onOpenUrl(handler): Promise<UnlistenFn>

Defined in: index.ts:99

Helper function for the deep-link://new-url event to run a function each time the protocol is triggered while the app is running. Use getCurrent on app load to check whether your app was started via a deep link.

(urls) => void

Promise<UnlistenFn>

import { onOpenUrl } from '@tauri-apps/plugin-deep-link';
await onOpenUrl((urls) => { console.log(urls) });

2.0.0


© 2025 Tauri Contributors. CC-BY / MIT