From cf52f5f1f41f0af315640ce07825cb6110b3e4b3 Mon Sep 17 00:00:00 2001 From: lemoer Date: Sat, 12 Jul 2025 02:45:43 +0200 Subject: [PATCH] add primitive AppLinks handler --- lib/main.dart | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/main.dart b/lib/main.dart index 03c87e8..bbb6355 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -217,6 +217,13 @@ class _MyHomePageState extends State { void initState() { super.initState(); + final appLinks = AppLinks(); // AppLinks is singleton + + // Subscribe to all events (initial link and further) + final sub = appLinks.uriLinkStream.listen((uri) { + doSSH("innentuer-open"); + }); + // we do not await generateKey() here, as this is the intended way obtainKeyPair(); }