File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
packages/uikit-react-native
sample/android/app/src/main Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -79,11 +79,12 @@ Add the following permissions to your `android/app/src/main/AndroidManifest.xml`
79
79
<!-- Permissions for voice message -->
80
80
<uses-permission android : name =" android.permission.RECORD_AUDIO" />
81
81
82
- <!-- Permissions for image attachments -->
82
+ <!-- Permissions for attachments -->
83
83
<uses-permission android : name =" android.permission.READ_EXTERNAL_STORAGE" android : maxSdkVersion =" 32" />
84
84
<uses-permission android : name =" android.permission.WRITE_EXTERNAL_STORAGE" android : maxSdkVersion =" 28" />
85
+ <uses-permission android : name =" android.permission.CAMERA" />
85
86
86
- <!-- Permissions for notifications (Android 13) -->
87
+ <!-- Permissions for notifications (Android 13+ ) -->
87
88
<uses-permission android : name =" android.permission.POST_NOTIFICATIONS" />
88
89
89
90
</manifest >
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ const createNativeFileService = ({
59
59
} ) : FileServiceInterface => {
60
60
const cameraPermissions : Permission [ ] = Platform . select ( {
61
61
ios : [ permissionModule . PERMISSIONS . IOS . CAMERA , permissionModule . PERMISSIONS . IOS . MICROPHONE ] ,
62
- android : [ ] ,
62
+ android : [ permissionModule . PERMISSIONS . ANDROID . CAMERA ] ,
63
63
default : [ ] ,
64
64
} ) ;
65
65
const mediaLibraryPermissions : Permission [ ] = Platform . select ( {
Original file line number Diff line number Diff line change 8
8
<!-- Permissions for voice message -->
9
9
<uses-permission android : name =" android.permission.RECORD_AUDIO" />
10
10
11
- <!-- Permissions for image attachments -->
11
+ <!-- Permissions for attachments -->
12
12
<uses-permission android : name =" android.permission.READ_EXTERNAL_STORAGE" android : maxSdkVersion =" 32" />
13
13
<uses-permission android : name =" android.permission.WRITE_EXTERNAL_STORAGE" android : maxSdkVersion =" 28" />
14
+ <uses-permission android : name =" android.permission.CAMERA" />
14
15
15
- <!-- Permissions for notifications (Android 13) -->
16
+ <!-- Permissions for notifications (Android 13+ ) -->
16
17
<uses-permission android : name =" android.permission.POST_NOTIFICATIONS" />
17
18
18
19
<application
You can’t perform that action at this time.
0 commit comments