Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] add configurations for opening links in mobile app

Aman Raj Singh Mourya130418e4437c
diff --git a/mobile/android/app/src/main/AndroidManifest.xml b/mobile/android/app/src/main/AndroidManifest.xml
index de64e53eb8..808229a141 100644
--- a/mobile/android/app/src/main/AndroidManifest.xml
+++ b/mobile/android/app/src/main/AndroidManifest.xml
@@ -10,7 +10,7 @@
android:fullBackupContent="false"
android:largeHeap="true">
- <activity android:name=".MainActivity" android:launchMode="singleTop"
+ <activity android:name=".MainActivity" android:launchMode="singleTask"
android:theme="@style/LaunchTheme"
android:exported="true"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
@@ -46,6 +46,16 @@
<data android:mimeType="video/*" />
</intent-filter>
+ <!-- App 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"
+ android:host="albums.ente.io"/>
+ </intent-filter>
+
<!-- file provider to share files having a file:// URI -->
<!--Filter
diff --git a/mobile/ios/Runner/Info.plist b/mobile/ios/Runner/Info.plist
index cebb2dcdbb..9e973ecb8b 100644
--- a/mobile/ios/Runner/Info.plist
+++ b/mobile/ios/Runner/Info.plist
@@ -114,5 +114,16 @@
<key>NSLocalNetworkUsageDescription</key>
<string>${PRODUCT_NAME} uses the local network to discover Cast-enabled devices on your WiFi
network.</string>
+ <key>CFBundleURLTypes</key>
+ <array>
+ <dict>
+ <key>CFBundleURLName</key>
+ <string>albums.ente.io</string>
+ <key>CFBundleURLSchemes</key>
+ <array>
+ <string>https</string>
+ </array>
+ </dict>
+ </array>
</dict>
</plist>