Smooch iOS SDK: can't add SKTMenuItemCamera to list of menu items

72 Views Asked by At

I'm trying to add the camera option to the list of menu items in Smooch. I've followed the steps in the docs, those being...

1) Add SKTMenuItemCamera to my settings.allowedMenuItems in AppDelegate.m

SKTSettings* settings = [SKTSettings settingsWithAppId:@"myAppId"];
settings.allowedMenuItems = @[SKTMenuItemCamera, SKTMenuItemGallery, SKTMenuItemDocument];

2) Add the NSCameraUsageDescription key and description string to my Info.plist file.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    ... more keys and descriptions
    <key>NSCameraUsageDescription</key>
    <string>Camera permission is required to send images to $(PRODUCT_NAME)</string>
    ... more keys and descriptions
</dict>
</plist>

For some reason the camera option isn't being displayed, though the photo gallery and document upload options are. I haven't seen this problem reported anywhere else. Help!

I'm using Smooch (6.10.2)

0

There are 0 best solutions below