Skip to content

Commit 82dc866

Browse files
authored
Merge pull request #10128 from tomivs/tomivs-deep-links-android-12
Fix Deep Links not working on Android 12+
2 parents af197be + 3e01ca4 commit 82dc866

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.well-known/assetlinks.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[{
2+
"relation": ["delegate_permission/common.handle_all_urls"],
3+
"target": {
4+
"namespace": "android_app",
5+
"package_name": "com.expensify.chat",
6+
"sha256_cert_fingerprints": ["2E:65:6F:1C:34:F5:7E:BF:FC:C0:2D:A3:14:0E:83:FE:61:51:F2:9B:5D:59:58:61:C4:4D:A9:99:0C:CA:F4:8E"]
7+
}
8+
}]

android/app/src/main/AndroidManifest.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,24 @@
2929
<activity
3030
android:name=".bootsplash.BootSplashActivity"
3131
android:theme="@style/BootTheme"
32-
android:exported="false"
32+
android:exported="true"
3333
android:launchMode="singleTask">
3434

35-
<intent-filter>
35+
<intent-filter android:autoVerify="true">
3636
<action android:name="android.intent.action.MAIN" />
3737
<category android:name="android.intent.category.LAUNCHER" />
3838
</intent-filter>
3939

4040
<!-- Custom URI handlers. Used to intercept Urban Airship deep links. -->
41-
<intent-filter>
41+
<intent-filter android:autoVerify="true">
4242
<action android:name="android.intent.action.VIEW"/>
4343
<category android:name="android.intent.category.DEFAULT"/>
4444
<category android:name="android.intent.category.BROWSABLE"/>
4545
<data android:scheme="new-expensify"/>
4646
</intent-filter>
4747

4848
<!-- Web URL handlers. Used to intercept web links. -->
49-
<intent-filter>
49+
<intent-filter android:autoVerify="true">
5050
<action android:name="android.intent.action.VIEW"/>
5151
<category android:name="android.intent.category.DEFAULT"/>
5252
<category android:name="android.intent.category.BROWSABLE"/>

config/webpack/webpack.common.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ const webpackConfig = ({envFile = '.env', platform = 'web'}) => ({
5656
{from: 'node_modules/react-pdf/dist/esm/Page/AnnotationLayer.css', to: 'css/AnnotationLayer.css'},
5757
{from: 'assets/images/shadow.png', to: 'images/shadow.png'},
5858
{from: '.well-known/apple-app-site-association', to: '.well-known/apple-app-site-association', toType: 'file'},
59+
{from: '.well-known/assetlinks.json', to: '.well-known/assetlinks.json'},
5960

6061
// These files are copied over as per instructions here
6162
// https://github.com/wojtekmaj/react-pdf#copying-cmaps

0 commit comments

Comments
 (0)