Haptik Docs

Haptik Docs

  • Tools
  • Integrations

›Advanced

  • Quick Start
  • Authentication
  • Push Notifications
  • Advanced

    • Required Permissions
    • Theming
    • Conversation
    • Rate & Share
    • Voice Support
    • Location Support
    • Analytics
    • Additional Features
  • Sample App
  • Troubleshooting

Required Permissions

Make sure you have all of the following permission attributes in your Info.plist file:

Haptik only supports Portrait orientation.

<key>UISupportedInterfaceOrientations</key>
<array>
   <string>UIInterfaceOrientationPortrait</string>
</array>

Privacy - Photo Library Usage Description to enable a user to upload photos from the photos gallery in the chat flows.

<key>NSPhotoLibraryUsageDescription</key>
<string>To enable usage & saving of photos</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>To enable usage & saving of photos</string>

Privacy - Camera Usage Description to enable a user to upload photos from camera within chat flows.

<key>NSCameraUsageDescription</key>
<string>To enable camera usage for uploading photos</string>

Privacy - Contacts Usage Description To access phone contacts

<key>NSContactsUsageDescription</key>
<string>With contacts access, we provide an easy way to give you app support</string>

If you already allow Arbitrary Loads then you can skip adding the exception domains given below.

Exception Domains:
<key>NSAppTransportSecurity</key>
<dict>
   <key>NSExceptionDomains</key>
   <dict>
      <key>haptik-staging.s3.amazonaws.com</key>
      <dict>
         <key>NSIncludesSubdomains</key>
         <true/>
         <key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key>
         <true/>
      </dict>
      <key>haptikapi.com</key>
      <dict>
         <key>NSIncludesSubdomains</key>
         <true/>
         <key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key>
         <true/>
      </dict>
      <key>haptikdev.s3.amazonaws.com</key>
      <dict>
         <key>NSIncludesSubdomains</key>
         <true/>
         <key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key>
         <true/>
      </dict>
      <key>staging.hellohaptik.com</key>
      <dict>
         <key>NSIncludesSubdomains</key>
         <true/>
         <key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key>
         <true/>
      </dict>
   </dict>
</dict>
Last updated on 4/16/2021
← Push NotificationsTheming →
Haptik Inc.
Tools
Conversation StudioSmart Agent ChatIntelligent Analytics
Integrations
iOS SDKAndroid SDKWeb SDKWhatsAppFacebookBot API
Others
HSLSLAExternal Agent Chat Tool
Copyright © 2021 Haptik Inc.