fix: android app link support (#19501)

* fix: android app link support

* add autoVerify tag

* adjust intent to have scheme separate
This commit is contained in:
Brandon Wees 2025-06-24 12:52:15 -05:00 committed by GitHub
parent 88b8afb8d6
commit 3751f8bc57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -90,12 +90,35 @@
<data android:mimeType="video/*" /> <data android:mimeType="video/*" />
</intent-filter> </intent-filter>
<!-- immich:// URL scheme handling -->
<intent-filter> <intent-filter>
<action android:name="android.intent.action.VIEW" /> <action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" /> <category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="immich" /> <data android:scheme="immich" />
</intent-filter> </intent-filter>
<!-- my.immich.app deep link -->
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" />
<data
android:host="my.immich.app"
android:path="/" />
<data
android:host="my.immich.app"
android:pathPrefix="/albums/" />
<data
android:host="my.immich.app"
android:pathPrefix="/memories/" />
<data
android:host="my.immich.app"
android:pathPrefix="/photos/" />
</intent-filter>
</activity> </activity>