UNPKG

react-native-my-app-list

Version:

Get user-facing installed apps for React Native Android using privacy-friendly queries instead of QUERY_ALL_PACKAGES permission.

35 lines (34 loc) 1.34 kB
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> <!-- Query for user-facing apps (apps with launcher intent) --> <queries> <intent> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent> <!-- Query for apps that can handle sharing --> <intent> <action android:name="android.intent.action.SEND" /> <data android:mimeType="*/*" /> </intent> <!-- Query for web browsers --> <intent> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="http" /> </intent> <!-- Query for camera apps --> <intent> <action android:name="android.media.action.IMAGE_CAPTURE" /> </intent> <!-- Query for gallery/photo apps --> <intent> <action android:name="android.intent.action.PICK" /> <data android:mimeType="image/*" /> </intent> <!-- Query for music/media apps --> <intent> <action android:name="android.intent.action.VIEW" /> <data android:mimeType="audio/*" /> </intent> </queries> </manifest>