Getting Started iOS

You're 3 steps away from adding great in-app support to your Xamarin App.

Guide to integrating the Xamatin plugin for the Helpshift SDK.

Download Helpshift Xamarin SDK for iOS

Download SDK v2.3.0

The Helpshift SDK .zip file contains the following files:

HelpshiftApi.dll
The platform independent DLL. Only needs to be added for api reference in a cross platform project. This dll should not be packaged with the final application.
Android/HelpshiftApi.Android.dll
The Android specific DLL.
iOS/Standard build/Helpshift.IOS.dll
The iOS binding library DLL for standard build.
iOS/Standard build/HelpshiftApi.iOS.dll
The iOS specific api DLL for standard build.
iOS/Bitcode build/Helpshift.IOS.Bitcode.dll
The iOS Bitcode build binding DLL.
iOS/Bitcode build/HelpshiftApi.iOS.dll
The iOS Bitcode supported api DLL.
iOS/HelpshiftDefaultLocalizations
Localization for strings.
iOS/HsLocalization.bundle
Default bundle to be used if no changes are required by the developer in localized strings.
iOS/HSThemes
Used for theming in iOS

Add Helpshift to your Xamarin project

  • Add the HelpshiftApi.dll to the References in platform independent project in your multi-platform Xamarin project. This dll should not be packaged with the final application.
  • Add the iOS/Standard build/HelpshiftApi.iOS.dll and iOS/Standard build/Helpshift.IOS.dll to the References in your iOS specific project if built as non-bitcode supported app.
  • Add the iOS/Bitcode build/HelpshiftApi.iOS.dll and iOS/Bitcode build/Helpshift.IOS.Bitcode.dll to the References in your iOS specific project if built as bitcode supported app.
  • Add HsLocalization.bundle to Resources in your iOS specific project. If you want to customize the localized strings, make changes to the strings in HelpshiftDefaultLocalizations folder and convert it to a bundle. Add this customized bundle to Resources folder of the project.
  • (Optional) Add HSThemes/HelpshiftConfig.plist or HSThemes/HelpshiftConfigDark.plist in Resources in your iOS specific project to add theming support.
  • Add the following packages to your app for iOS:
  1. Newtonsoft JSON.Net

Initializing Helpshift in your app

To use Helpshift's APIs, please import the Helpshift's namespace as given below.

using HelpshiftApi;

Helpshift SDK uniquely identifies your App with the combination of:

API Key
Your unique developer API Key.
Domain Name
Your Helpshift domain name. For example : foo.helpshift.com
App ID
A unique ID assigned to your app.

To get the API Key, Domain Name and the App ID, navigate to Settings>SDK (for Developers) in your agent dashboard and scroll down to "Initializing Helpshift" section. show me

Select your App from the dropdown and copy the three tokens to be passed when initializing Helpshift.

And, initialize Helpshift by calling the Install(apiKey, domain, appId). For example:

using HelpshiftApi;
.
.
.
HelpshiftCore.Initialize(HelpshiftApiProviderType.HelpshiftApiProviderTypeAll);
HelpshiftCore.Install ("<API_KEY>", "<DOMAIN_NAME>", "<APP_ID>");

Start using Helpshift

Helpshift is now integrated in your app. You should now use the support APIs to present FAQ or conversation screens inside your app.

Run your app, and try starting a test conversation using the showConversation API call. Then goto your Helpshift agent dashboard and reply to experience the in-app messaging.

Sample usage for FAQs and conversation APIs:

helpBtn.TouchUpInside += delegate {
    HelpshiftApi.HelpshiftSupport.ShowFAQs(uiViewController, faqApiConfigDictionary);
};

contactUsBtn.TouchUpInside += delegate {
    HelpshiftApi.HelpshiftSupport.ShowConversation(uiViewController, convApiConfigDictionary);
};

Next up

Helpshift APIs

Discover ways to do customer support via Helpshift.

Notifications

Configure Push and In-app notifications.

Tracking

Track events and user actions. Attach custom metadata to every conversation.

Reviews & Feedback

Asking for reviews and feedback.