feat: deep link routing for lightning and lnurl schemes plus association files

This commit is contained in:
2026-08-20 08:31:59 +02:00
parent e59b722b5e
commit 229e9fcf38
6 changed files with 72 additions and 8 deletions
+16
View File
@@ -0,0 +1,16 @@
import { defineBoot } from '#q-app';
import { initDeepLinks } from '@/capabilities/deepLinks';
// Deep-link bootstrap (capabilities/deepLinks.ts): native appUrlOpen /
// cold-start launch URLs and the PWA protocol-handler ?uri= landing all
// funnel into pendingExternalInput; the home screen consumes it and opens
// the matching receive/pay dialog. Every accepted link routes home first -
// the dialogs live there.
export default defineBoot(({ router }) => {
void initDeepLinks(() => {
void router.push('/').catch(() => {
// already on '/' - a redundant navigation is not an error
});
});
});