From 76894a6634c3eac154fae80893180f63e69b019c Mon Sep 17 00:00:00 2001 From: HolgerHatGarKeineNode <123783602+HolgerHatGarKeineNode@users.noreply.github.com> Date: Thu, 11 Jun 2026 22:54:40 +0200 Subject: [PATCH] Require a user tap to launch the Nostr signer (fixes Amber malformed) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Amber v6.2.0 routes nostrsigner: intents by EXTRA_APPLICATION_ID: present (web flow, reads the event from the URI) vs absent (app-to-app flow, reads type/event from intent extras → rejects our URI as malformed). Browsers only attach that extra when the external-app launch comes from a user gesture, so the auto-redirect on page load always failed. The launcher now waits for the user to tap "Mit Amber signieren". --- .../views/auth/mobile-nostr-launch.blade.php | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/resources/views/auth/mobile-nostr-launch.blade.php b/resources/views/auth/mobile-nostr-launch.blade.php index b45bba9..5608c64 100644 --- a/resources/views/auth/mobile-nostr-launch.blade.php +++ b/resources/views/auth/mobile-nostr-launch.blade.php @@ -8,23 +8,27 @@ body { margin: 0; min-height: 100dvh; display: flex; align-items: center; justify-content: center; background: #09090b; color: #fafafa; font-family: ui-sans-serif, system-ui, sans-serif; } .card { text-align: center; padding: 2rem; max-width: 22rem; } - h1 { font-size: 1.25rem; margin: 1rem 0 .5rem; } + .logo { width: 5rem; height: 5rem; margin: 0 auto 1.5rem; } + h1 { font-size: 1.25rem; margin: 0 0 .5rem; } p { color: #a1a1aa; line-height: 1.5; } - button.launch { margin-top: 1.5rem; padding: .875rem 1.25rem; border: 0; border-radius: .75rem; - background: #f7931a; color: #09090b; font-weight: 600; font-size: 1rem; cursor: pointer; } + button.launch { margin-top: 1.5rem; width: 100%; padding: 1rem 1.25rem; border: 0; border-radius: .75rem; + background: #f7931a; color: #09090b; font-weight: 600; font-size: 1.05rem; cursor: pointer; }
{{ __('Dein Nostr-Signer (z. B. Amber) öffnet sich gleich. Falls nicht, tippe auf den Button.') }}
- +{{ __('Tippe auf den Button, um die Anmeldung mit deinem Nostr-Signer (z. B. Amber) zu signieren.') }}
+ {{-- The signer MUST be launched from a user gesture: browsers only + attach the EXTRA_APPLICATION_ID that routes Amber into its + web-signing flow when the external-app launch is user-initiated. + An auto-redirect on load is rejected by Amber as malformed. --}} +