Enabling iOS SDK and Setting Up Related Credentials
- Getting Started
- Bot Building
- Smart Agent Chat
- Conversation Design
-
Developer Guides
Code Step Integration Static Step Integration Shopify Integration SETU Integration Exotel Integration CIBIL integration Freshdesk KMS Integration PayU Integration Zendesk Guide Integration Twilio Integration Razorpay Integration LeadSquared Integration USU(Unymira) Integration Helo(VivaConnect) Integration Salesforce KMS Integration Stripe Integration PayPal Integration CleverTap Integration Fynd Integration HubSpot Integration Magento Integration WooCommerce Integration Microsoft Dynamics 365 Integration
- Deployment
- External Agent Tool Setup
- Analytics & Reporting
- Notifications
- Commerce Plus
- Troubleshooting Guides
- Release Notes
Table of Contents
Enabling iOS SDK Platform
- Go to Business Manager > Channels > Platform Deployments and choose iOS SDK from Platform drop-down.
- One can also set up webhooks by providing the Webhook URL and enabling the Webhook and putting Email IDs below it.
- Now, turn on the Active toggle button to enable this platform deployment.
Setup Credentials
The SDK takes in any type of credentials through your info.plist file. You define a Dictionary object in your info.plist file with the name HaptikLib and add all the required credentials there. These credentials are required else the SDK will give an assert.
After registering with Haptik as an account, you'll be given the following credentials:
- Client ID
- Base URL (Different for Staging and Production)
- Business ID
You also have to set the runEnvironment according to the baseURL you are specifying. Set 0 if adding the Production URL else keep it as 1 (Staging). On opening the app's Info.plist in Source Code format you can add the required keys as illustrated below:
<key>HaptikLib</key> <dict> <key>baseUrl</key> <string>insert_base_url</string> <key>businessID</key> <string>insert_busines_id</string> <key>clientID</key> <string>insert_client_id</string> <key>runEnvironment</key> <string>1</string> </dict>
While releasing the application on the App Store, only the Production URL (provided by Haptik) should be used and the runEnvironment should be 0.
Permissions
HaptikLib requires some basic permissions which almost every application takes to function properly. Make sure to add them else iOS will assert the application when the SDK will try to present the prompt if the respective permission is not granted by the user. Reach out to your Haptik SPOC regarding these permissions.