Skip to content

Commit e8bdd8a

Browse files
fix(ios): add photo/camera/microphone permissions for file upload
WKWebView file input requires NSPhotoLibraryUsageDescription and NSCameraUsageDescription in Info.plist to show the photo picker. Without these, tapping the upload button does nothing on iOS. Also adds NSMicrophoneUsageDescription for future voice message support.
1 parent 6b2ae65 commit e8bdd8a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

ios/App/App/Info.plist

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@
5454
<key>NSAllowsArbitraryLoads</key>
5555
<true/>
5656
</dict>
57+
<!-- Permissions for file/photo upload in WebView -->
58+
<key>NSPhotoLibraryUsageDescription</key>
59+
<string>BotsChat needs access to your photo library to send images in chat.</string>
60+
<key>NSCameraUsageDescription</key>
61+
<string>BotsChat needs camera access to take photos for chat.</string>
62+
<key>NSMicrophoneUsageDescription</key>
63+
<string>BotsChat needs microphone access to send voice messages.</string>
5764
<!-- Google Sign-In URL scheme (Reversed Client ID from iOS OAuth Client) -->
5865
<key>CFBundleURLTypes</key>
5966
<array>

0 commit comments

Comments
 (0)