add Android app link

This commit is contained in:
2023-06-01 00:21:14 +02:00
parent af054ac61c
commit 1e742826cf
3 changed files with 26 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> <manifest xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android">
<application <application
android:allowBackup="true" android:allowBackup="true"
@@ -17,10 +18,22 @@
android:launchMode="singleTask" android:launchMode="singleTask"
android:exported="true"> android:exported="true">
<tools:validation testUrl="https://contexted.app" />
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.LAUNCHER" />
</intent-filter> </intent-filter>
<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="contexted.app" />
</intent-filter>
</activity> </activity>

View File

@@ -1,4 +1,4 @@
import { CapacitorConfig } from '@capacitor/cli'; import { CapacitorConfig } from '@capacitor/cli'
const config: CapacitorConfig = { const config: CapacitorConfig = {
appId: 'com.contexted.app', appId: 'com.contexted.app',
@@ -7,6 +7,6 @@ const config: CapacitorConfig = {
server: { server: {
androidScheme: 'https' androidScheme: 'https'
} }
}; }
export default config; export default config

View File

@@ -0,0 +1,9 @@
[{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.contexted.app",
"sha256_cert_fingerprints":
["42:56:8A:D7:2C:F0:BE:28:E4:C2:CB:A7:C0:D1:4B:00:88:70:95:C7:C6:BF:7D:AA:61:D8:A0:59:94:25:63:1A"]
}
}]