Skip to content

Commit 27f964d

Browse files
authored
Merge pull request #1518 from GetStream/santhosh/remove-query-all-packages-permission
fix: query all packages should not be needed
2 parents 13979e5 + aa73767 commit 27f964d

File tree

3 files changed

+32
-7
lines changed

3 files changed

+32
-7
lines changed

docusaurus/docs/reactnative/basics/troubleshooting.mdx

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,13 +214,18 @@ android {
214214
Opening an external link doesn't work without permissions on `targetSdkVersion` >= 30. So, the following permission must be included in the `AndroidManifest.xml` file.
215215

216216
```xml
217-
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
217+
<queries>
218+
<intent>
219+
<action android:name="android.intent.action.VIEW" />
220+
<data android:scheme="http" android:host="*" />
221+
</intent>
222+
<intent>
223+
<action android:name="android.intent.action.VIEW" />
224+
<data android:scheme="https" android:host="*" />
225+
</intent>
226+
</queries>
218227
```
219228

220-
:::caution
221-
**Note:** Make sure you are aware of [upcoming policies](https://support.google.com/googleplay/android-developer/answer/10158779) that this change will be subjected to.
222-
:::
223-
224229
## GIF and WebP not displaying
225230

226231
### Android

examples/SampleApp/android/app/src/main/AndroidManifest.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,19 @@
44
<uses-permission android:name="android.permission.INTERNET" />
55
<uses-permission android:name="android.permission.CAMERA" />
66
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
7-
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
87
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
98

9+
<queries>
10+
<intent>
11+
<action android:name="android.intent.action.VIEW" />
12+
<data android:scheme="http" android:host="*" />
13+
</intent>
14+
<intent>
15+
<action android:name="android.intent.action.VIEW" />
16+
<data android:scheme="https" android:host="*" />
17+
</intent>
18+
</queries>
19+
1020
<application
1121
android:usesCleartextTraffic="true"
1222
android:name=".MainApplication"

examples/TypeScriptMessaging/android/app/src/main/AndroidManifest.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,19 @@
44
<uses-permission android:name="android.permission.INTERNET" />
55
<uses-permission android:name="android.permission.CAMERA" />
66
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
7-
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
87
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
98

9+
<queries>
10+
<intent>
11+
<action android:name="android.intent.action.VIEW" />
12+
<data android:scheme="http" android:host="*" />
13+
</intent>
14+
<intent>
15+
<action android:name="android.intent.action.VIEW" />
16+
<data android:scheme="https" android:host="*" />
17+
</intent>
18+
</queries>
19+
1020
<application
1121
android:name=".MainApplication"
1222
android:label="@string/app_name"

0 commit comments

Comments
 (0)