Skip to content

Commit 83f7c93

Browse files
committed
add setup instructions
1 parent 802db8d commit 83f7c93

File tree

4 files changed

+43
-1
lines changed

4 files changed

+43
-1
lines changed

README.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,13 +408,20 @@ func application(_ application: UIApplication, didFinishLaunchingWithOptions lau
408408

409409
#### iOS: Permissions
410410

411-
Add this permission to your `Info.plist`
411+
Add these permissions to your `Info.plist`:
412412

413413
```xml
414+
<!-- Optional: Camera access for taking photos in conversations -->
414415
<key>NSCameraUsageDescription</key>
415416
<string>Access your camera to take photos within a conversation</string>
417+
418+
<!-- Optional: Microphone access for voice message transcription (v9.3.0+) -->
419+
<key>NSMicrophoneUsageDescription</key>
420+
<string>Access your microphone to transcribe voice messages in conversations</string>
416421
```
417422

423+
**Note:** These permissions are only requested when the user attempts to use the respective feature. You can customize the description strings to match your app's use case.
424+
418425
#### iOS: Push Notifications
419426

420427
> **Note**: You should request user permission to display push notifications.
@@ -593,6 +600,27 @@ const apiKey = Platform.select({
593600
await Intercom.initialize(apiKey, 'abc123');
594601
```
595602

603+
#### Expo: iOS Permissions
604+
605+
To enable camera and microphone features in your Expo app, add the following to your `app.json` or `app.config.js`:
606+
607+
```json
608+
{
609+
"expo": {
610+
"ios": {
611+
"infoPlist": {
612+
"NSCameraUsageDescription": "Access your camera to take photos within a conversation",
613+
"NSMicrophoneUsageDescription": "Access your microphone to transcribe voice messages in conversations"
614+
}
615+
}
616+
}
617+
}
618+
```
619+
620+
**Note:** These permissions are required for iOS SDK 19.3.0+. The microphone permission enables voice message transcription. You can customize the description strings to match your app's use case.
621+
622+
After adding these permissions, run `npx expo prebuild` to regenerate the native iOS project with the updated Info.plist.
623+
596624
#### Expo: Push notifications
597625

598626
Add the following configurations into your `app.json` or `app.config.js`:

examples/example/ios/IntercomReactNativeExample/Info.plist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@
5656
<string></string>
5757
<key>NSPhotoLibraryUsageDescription</key>
5858
<string>Send photos to support center</string>
59+
<key>NSCameraUsageDescription</key>
60+
<string>Access your camera to take photos within a conversation</string>
61+
<key>NSMicrophoneUsageDescription</key>
62+
<string>Access your microphone to transcribe voice messages in conversations</string>
5963
<key>UIBackgroundModes</key>
6064
<array>
6165
<string>remote-notification</string>

examples/expo-example/app.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
"bundleIdentifier": "com.example.intercomreactnative", // Change this to your app's bundle identifier
1414
"entitlements": {
1515
"aps-environment": "production" // Change this to your app's environment
16+
},
17+
"infoPlist": {
18+
"NSCameraUsageDescription": "Access your camera to take photos within a conversation",
19+
"NSMicrophoneUsageDescription": "Access your microphone to transcribe voice messages in conversations"
1620
}
1721
},
1822
"android": {

examples/with-notifications/ios/withnotification/Info.plist

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@
3333
</dict>
3434
<key>NSLocationWhenInUseUsageDescription</key>
3535
<string></string>
36+
<key>NSPhotoLibraryUsageDescription</key>
37+
<string>Send photos to support center</string>
38+
<key>NSCameraUsageDescription</key>
39+
<string>Access your camera to take photos within a conversation</string>
40+
<key>NSMicrophoneUsageDescription</key>
41+
<string>Access your microphone to transcribe voice messages in conversations</string>
3642
<key>RCTNewArchEnabled</key>
3743
<true/>
3844
<key>UILaunchStoryboardName</key>

0 commit comments

Comments
 (0)