Skip to content

Commit 87550ae

Browse files
fix: intent filters (#2055)
1 parent d97ce3c commit 87550ae

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

config.xml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,27 +38,17 @@
3838
<preference name="GradlePluginKotlinEnabled" value="true" />
3939
<preference name="android-targetSdkVersion" value="36" />
4040

41-
<!-- Cordova does not merge this unless both of these are present -->
42-
<edit-config file="AndroidManifest.xml" mode="merge" target="/manifest/application">
43-
<application
44-
android:usesCleartextTraffic="true"
41+
42+
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
43+
<application
4544
android:networkSecurityConfig="@xml/network_security_config"
4645
android:hardwareAccelerated="true"
4746
android:largeHeap="true"
4847
android:requestLegacyExternalStorage="true"
48+
android:usesCleartextTraffic="true"
4949
android:enableOnBackInvokedCallback="false" />
5050
</edit-config>
5151

52-
<!-- Cordova does not merge this unless both of these are present -->
53-
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
54-
<application android:networkSecurityConfig="@xml/network_security_config" />
55-
<application android:usesCleartextTraffic="true" />
56-
<application android:hardwareAccelerated="true" />
57-
<application android:largeHeap="true" />
58-
<application android:requestLegacyExternalStorage="true"/>
59-
<application android:enableOnBackInvokedCallback="false" />
60-
</edit-config>
61-
6252
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application/activity[@android:name='MainActivity']">
6353
<activity android:resizeableActivity="true" />
6454
</edit-config>
@@ -69,7 +59,8 @@
6959
<action android:name="android.intent.action.EDIT" />
7060
<category android:name="android.intent.category.DEFAULT" />
7161
<category android:name="android.intent.category.LAUNCHER" />
72-
<data android:mimeType="*/*"/>
62+
<data android:scheme="file" android:mimeType="*/*" />
63+
<data android:scheme="content" android:mimeType="*/*" />
7364
</intent-filter>
7465
<!-- Allow app to open using url from browser -->
7566
<intent-filter android:autoVerify="true">
@@ -92,4 +83,4 @@
9283
<hook type="after_prepare" src="hooks/post-process.js" />
9384
</platform>
9485
<preference name="AndroidBlacklistSecureSocketProtocols" value="SSLv3,TLSv1" />
95-
</widget>
86+
</widget>

0 commit comments

Comments
 (0)