Universal Links: gescannter Einzelstück-Link öffnet die App

Server liefert /.well-known/apple-app-site-association (nur /i/* beansprucht;
/l/* bleibt im Browser). iOS: Associated-Domains-Entitlement, Universal Link
(https://…/i/<UID>) wird abgefangen (onContinueUserActivity) und öffnet das
Einzelstück direkt.

Hinweis: Damit das Signieren durchläuft, muss die Capability "Associated
Domains" einmalig im Apple-Developer-Portal für die App-ID aktiv sein.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Scarriffle
2026-07-26 08:12:45 +02:00
parent 7f9895245c
commit e8471bd951
6 changed files with 56 additions and 4 deletions

View File

@@ -9,6 +9,14 @@ server {
# den Upload ueberhaupt sieht.
client_max_body_size 12m;
# Universal Links: iOS holt diese Datei, um /i/<UID>-Links direkt in der App
# zu öffnen. Bewusst nur die Einzelstück-Pfade (/i/*); Lagerort-Links (/l/*)
# bleiben im Browser. Team-/Bundle-ID aus ios/project.yml.
location = /.well-known/apple-app-site-association {
default_type application/json;
return 200 '{"applinks":{"details":[{"appIDs":["PP34X97WS3.com.scarriffle.vorrania"],"components":[{"/":"/i/*"}]}]}}';
}
# SPA-Routing: unbekannte Pfade auf index.html mappen
location / {
try_files $uri $uri/ /index.html;