Read Amber's actual IntentUtils.kt to confirm exact URL parsing: - Strips "nostrsigner:" prefix - URLDecodes the remainder - Parses ?key=value&key=value query params - "type" param controls operation - No callbackUrl → copies result to clipboard Correct URL: nostrsigner:?type=get_public_key&compressionType=none&returnType=signature Flow: 1. Tap "Open Amber" → window.location.href = nostrsigner: URL 2. Amber opens, user approves, copies hex pubkey to clipboard 3. App regains focus → tries navigator.clipboard.readText() auto 4. If clipboard denied → shows paste input (accepts hex or npub1) 5. Login complete Removed broken Capacitor plugin dependency (couldn't install git dep). Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
7 lines
435 B
Text
7 lines
435 B
Text
v1.0.34 — Amber login: correct URL from source + clipboard/paste flow
|
|
|
|
- Read Amber's actual IntentUtils.kt source to confirm exact URL format
|
|
- Correct: nostrsigner:?type=get_public_key&compressionType=none&returnType=signature
|
|
- No callbackUrl = Amber copies pubkey to clipboard (reliable on all Android)
|
|
- On return: auto-read clipboard (hex or npub), fallback to paste input
|
|
- Accepts both hex pubkey and npub1 format from Amber
|