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

Rate & Share

  • Haptik provides inbuilt share functionality where you can configure the SDK to share your app specific share text and share URL with others via the default iOS share extension from the conversation screen.

  • Users have an option to Rate your application on app store and share your application from the conversation screen. You need to add your applications app store url and itunes item identifier for the SDK to take the user to your applications app store page.

To add these credentials, define a Dictionary object with the name shareAndRate inside the inside the HaptikLib dictionary defined in your Info.plist.

The shareAndRate dictionary should have the following key-values present in it:

KeyValueUsage
appStoreUrlInsert_App_Store_UrlThe App Store link used for rating the app.
shareTextInsert_Share_TextString used to share the app.
shareUrlInsert_Share_UrlUrl will replace %@ anywhere in the shareText
iTunesItemIdentifierInsert_Itunes_IdentifierItunes ID of your app used for user ratings.

On opening app's Info.plist in Source Code format you can add the required keys as illustrated below -

<key>HaptikLib</key>
<dict>
   <key>clientID</key>
   <string>Insert_ClientId_Here</string>
   <key>baseUrl</key>
   <string>Insert_BaseUrl_Here</string>
   <key>runEnvironment</key>
   <string>Set_Appropriate_Env</string>

   <key>shareAndRate</key>
   <dict>
      <key>appStoreUrl</key>
      <string>Insert_App_Store_Url</string>
      <key>iTunesItemIdentifier</key>
      <string>Insert_Itunes_Identifier</string>
      <key>shareText</key>
      <string>Insert_Share_Text</string>
      <key>shareUrl</key>
      <string>Insert_Share_Url</string>
   </dict>


</dict>

After adding the credentials, your info.plist should look like this:

shareAndRate Credentials plist screenshot

  • If the values are not added then the user will not see an option to rate and share on the conversation screen.
  • Inside the shareText wherever there will be %@ present, it will be replaced by the shareUrl provided.

Last updated on 4/16/2021
← ConversationVoice Support →
Haptik Inc.
Tools
Conversation StudioSmart Agent ChatIntelligent Analytics
Integrations
iOS SDKAndroid SDKWeb SDKWhatsAppFacebookBot API
Others
HSLSLAExternal Agent Chat Tool
Copyright © 2021 Haptik Inc.