Skip to content

Commit 1ad9195

Browse files
fix: add NSMicrophoneUsageDescription to app.json in LLM example app (#511)
## Description Fixes an issue where pressing microphone button in voice chat in example LLM app would crash the app on the IOS devices. ### Introduces a breaking change? - [ ] Yes - [x] No ### Type of change - [x] Bug fix (change which fixes an issue) - [ ] New feature (change which adds functionality) - [ ] Documentation update (improves or adds clarity to existing documentation) - [ ] Other (chores, tests, code style improvements etc.) ### Tested on - [ ] iOS - [ ] Android ### Testing instructions <!-- Provide step-by-step instructions on how to test your changes. Include setup details if necessary. --> ### Screenshots <!-- Add screenshots here, if applicable --> ### Related issues #510 ### Checklist - [ ] I have performed a self-review of my code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have updated the documentation accordingly - [ ] My changes generate no new warnings ### Additional notes <!-- Include any additional information, assumptions, or context that reviewers might need to understand this PR. -->
1 parent 20f1260 commit 1ad9195

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

apps/llm/app.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@
3333
},
3434
"ios": {
3535
"supportsTablet": true,
36-
"bundleIdentifier": "com.anonymous.llm"
36+
"bundleIdentifier": "com.anonymous.llm",
37+
"infoPlist": {
38+
"NSMicrophoneUsageDescription": "This app needs access to your microphone to record audio."
39+
}
3740
},
3841
"android": {
3942
"adaptiveIcon": {

apps/llm/ios/llm/Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
<string>The app needs to access your calendar.</string>
5050
<key>NSCalendarsUsageDescription</key>
5151
<string>The app needs to access your calendar.</string>
52+
<key>NSMicrophoneUsageDescription</key>
53+
<string>This app needs access to your microphone to record audio.</string>
5254
<key>NSRemindersFullAccessUsageDescription</key>
5355
<string>Allow $(PRODUCT_NAME) to access your reminders</string>
5456
<key>NSRemindersUsageDescription</key>

0 commit comments

Comments
 (0)