SDKs For Mobile Application

SDK for iOS

You’ll need to install Interakt’s latest iOS SDK in your Mobile Application to make it functional smoothly. Prerequisites

  1. An Interakt account. You can get started for free!
  2. An iOS Mobile Apllication that you are managing.
  3. A few minutes to get started.

Installation

Step 1

Download Interakt’s latest iOS SDK here and unzip it.

Step 2

Drag Interakt framework into your project’s Embedded Binaries section in the project editor, in order to add it to your project’s linked libraries. Interakt framework can be found in Interakt - iOS --> classes --> Frameworks.

Sdk1

Step 3

In the Build Phases tab of the project editor, click the “+” button at the top. Select "New Run Script Phase" and enter the following code into the script text field:

bash "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/Interakt.framework/strip-frameworks.sh"

Step 4

Now, add #import <Interakt/Interakt.h> in AppDelegate class

Step 5

In AppDelegate class, enter

-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions In AppDelegate class, enter -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [[InteraktSupport sharedInstance] installForApiKey:@"your_project_api_key" appID:@"your_project_appID"]; [[[InteraktSupport sharedInstance] setColorConfigurationWithBarBackgroundColor:[UIColor blueColor] titleColor:[UIColor whiteColor] tintColor:[UIColor whiteColor] sendQueryButtonTitleColor:[UIColor whiteColor] sendQueryButtonBackgroundColor:[UIColor colorWithRed:63/255.0 green:145/255.0 blue:203/255.0 alpha:1.0] andIsGrid:YES]; return YES; } Sdk2

Two ways to implement.

  1. If you are using navigation bar embedded in Navigation Controller, the navigation bar of the framework will be same as the application theme.
  2. If you are not using the navigation bar embedded in Navigation Controller, set color configuration in application with delegate method - didFinishLaunchingWithOptions:
    1. Button on which you want to show ‘Helpdesk’ add the code:
    2. [[InteraktSupport sharedInstance] showHelpdesk:self];
    3. Similarly, If you want to show ‘FAQ’ on the button add the code:
    4. [[InteraktSupport sharedInstance] showFaq:self];

SDK for Android

You’ll need to install Interakt’s latest Android SDK in your Mobile Application to make it functional smoothly. Prerequisites

  1. An Interakt account. You can get started for free!
  2. An Android Mobile Apllication that you are managing.
  3. A few minutes to get started.

Installation

Step 1

Download Interakt’s latest Andorid SDKs here

Step 2

  1. Add the downloaded ‘.aar’ file as a module in your project. For this -
  2. Go to file options in your android project and click on new module. Once you do that, you will find a screen like this -
  3. Android-module
  4. Now import the downloaded '.aar' in your project and add as a dependency in your project.

Step 3

To add a dependency of ‘.aar’ in your project, follow the steps given below :

  1. Go to your project structure and add the ‘.aar’ module dependency in your project.
  2. Module-dependency
  3. Now wait, until the gradle builds your project.

Step 4

As soon as the project is built, you can start using the SDK.

Step 5

Initialize the SDK.

MyApplication obj = MyApplication.getInstance();

  • In case of activity, call installForApiKey() method with the object of the class and pass the context as a first argument
  • Else, in case of a fragment pass, call getActivity().
  • In Second Argument pass your Interakt App ID. obj.installForApiKey(this, "YOUR INTERAKT APP ID");

Step 6

Add the folllowing code on the button on which you want to show FAQs -

obj.showFaqs(this,backgroundcolortoshowque,ingridstyle);

  • Here, the first argument is passed as reference of activity and in second argument we will pass the hexcode color of questions.
  • You can pass blank string as well in second argument, in that case it will take the default color.
  • In third argument we will pass boolean value to show the faqs, whether it is to be in grid or in listview. Pass true for gridview else false.

Similarly, If you want to show HELPDESK, add the following code on the button :

obj.showHelpDesk(this,"#000000");

  • Here, the first argument is passed as reference of activity and in second argument we will pass the hexcode color of query button to be shown while submitting the ticket.
  • You can pass blank string as well in second argument, in that case it will take the default color.

FAQ

What operating systems are supported?

We support iOS and Android Applications at this moment.

What are the apps supported in the SDKs?

Currently, Helpdesk and FAQs are available with the iOS and Android SDKs. We are planning to support more in the future.

Feel free to connect in case of issues at support@interakt.co

⇪ To Contents