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.
deep-link://new-url
getCurrent
import { onOpenUrl } from '@tauri-apps/plugin-deep-link';await onOpenUrl((urls) => { console.log(urls) }); Copy
import { onOpenUrl } from '@tauri-apps/plugin-deep-link';await onOpenUrl((urls) => { console.log(urls) });
2.0.0
Helper function for the
deep-link://new-url
event to run a function each time the protocol is triggered while the app is running. UsegetCurrent
on app load to check whether your app was started via a deep link.