Skip to content

Commit f232f47

Browse files
committed
fix: add media permissions for Android 13+ (including Android 15)
Added READ_MEDIA_VIDEO and READ_MEDIA_AUDIO permissions required for Android 13+. Also maintained backward compatibility with READ/WRITE_EXTERNAL_STORAGE for older versions.
1 parent e07927a commit f232f47

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

android/app/src/main/AndroidManifest.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
<!-- Permissions for accessing media on Android 13+ (API 33+) -->
3+
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO"/>
4+
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO"/>
5+
6+
<!-- Permissions for Android 12 and below (API 32 and below) -->
7+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32"/>
8+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="29"/>
9+
210
<application
311
android:label="${appName}"
412
android:name="${applicationName}"

0 commit comments

Comments
 (0)