8.1.3 • Published 6 days ago

react-native-zohosalesiq-mobilisten v8.1.3

Weekly downloads
75
License
MIT
Repository
github
Last release
6 days ago

SupportedLanguages Version Mobilisten NPM CD

React Native module for SalesIQ Mobilisten SDK

Connect with customers at every step of their journey. Give them the best in-app live chat experience with Mobilisten. Mobilisten enables customers to reach you from any screen on your app, get their questions answered, and make better purchase decisions.

Getting Started

Mobilisten is a support chat SDK that comes with a set of highly configurable APIs to suit your needs. Get started by generating an App and Access keys for your bundle ID from the SalesIQ console.

Requirements

iOS: Minimum deployment target should be set to iOS 11.

Android: Android API level 21 or above is required.

Installation

Follow the below steps given below to complete installation of Mobilisten in your React-Native app.

  1. Install the react-native-zohosalesiq-mobilisten package using NPM.
npm install react-native-zohosalesiq-mobilisten --save
  1. Link the module with the react native app
react-native link react-native-zohosalesiq-mobilisten

Installation steps for iOS

  1. Navigate to the ios folder in the project directory and open Podfile. Add the "/ios" to the path for the RNZohoSalesIQ pod as shown below.
- pod 'RNZohoSalesIQ', :path => '../node_modules/react-native-zohosalesiq-mobilisten'
+ pod 'RNZohoSalesIQ', :path => '../node_modules/react-native-zohosalesiq-mobilisten/ios'
  1. Run the pod repo update && pod install command from the ios directory.

Installation steps for Android

  1. If you're using React Native v0.60 or above, the dependency will be linked automatically without any steps being taken.

Android: Auto linking with React Native v0.59 and below

$ react-native link react-native-zohosalesiq-mobilisten

Android: Manual linking with React Native v0.59 and below

  • Add the below code to the android/settings.gradle
include ':react-native-zohosalesiq-mobilisten'
project(':react-native-zohosalesiq-mobilisten').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-zohosalesiq-mobilisten/android')
  • Implement the dependency in the android/app/build.gradle file inside dependencies
implementation project(':react-native-zohosalesiq-mobilisten')
  • Add the below snippet to android/app/src/main/java/com/module_name/MainApplication.java if the packages were not auto-generated.
private final ReactNativeHost mReactNativeHost=new ReactNativeHost(this){
// ...
@Override
protected List<ReactPackage> getPackages(){
        // Add new RNZohoSalesIQPackage() into the React packages list like below
        return new ArrayList<>(Arrays.<ReactPackage>asList(new RNZohoSalesIQPackage()));
        }
        // ...
        };

@Override
public ReactNativeHost getReactNativeHost(){
        return mReactNativeHost;
        }
  1. Navigate to the android folder within the project directory using Android Studio or any other platform of choice for Android development. Add the following maven repository to the build.gradle file.
allprojects {
      repositories {
        // ...
          maven { url 'https://maven.zohodl.com' }
      }
}
  1. Click Sync Now from the toolbar on the IDE.

Initializing Mobilisten

  1. Generate App and Access keys for iOS and Android platforms by providing your bundle id.
  2. Use the ZohoSalesIQ.initWithCallback API with keys for each platform as shown below.
import { ZohoSalesIQ } from 'react-native-zohosalesiq-mobilisten';

let appKey;
let accessKey;

if (Platform.OS === 'ios') {
    appKey = "ios_app_key";
    accessKey = "ios_access_key";
} else {
    appKey = "android_app_key";
    accessKey = "android_access_key";
}

ZohoSalesIQ.initWithCallback(appKey, accessKey, success => {
    // Your code
});
  1. If you want to show the default chat launcher, use the ZohoSalesIQ.Launcher.show() API (Optional).

API Documentation

You can find the list of all APIs and their documentation here under the API Reference section.

8.1.3

6 days ago

8.1.2

20 days ago

8.1.1

28 days ago

8.1.0

2 months ago

8.0.7

2 months ago

8.0.6

2 months ago

8.0.5

3 months ago

8.0.4

3 months ago

8.0.3

3 months ago

8.0.2

4 months ago

8.0.1

5 months ago

7.0.0

6 months ago

8.0.0

5 months ago

6.1.1

7 months ago

5.3.0

11 months ago

6.1.0

8 months ago

6.0.0

9 months ago

5.2.0

1 year ago

5.1.0

1 year ago

5.0.1

1 year ago

5.0.0

1 year ago

4.2.17

1 year ago

4.2.13

2 years ago

4.2.14

2 years ago

4.2.15

1 year ago

4.2.16

1 year ago

4.2.11

2 years ago

4.2.12

2 years ago

4.2.10

2 years ago

4.2.7

2 years ago

4.2.9

2 years ago

4.2.8

2 years ago

4.2.6

2 years ago

4.2.3

2 years ago

4.2.5

2 years ago

4.2.4

2 years ago

4.2.2

3 years ago

4.2.1

3 years ago

4.2.0

3 years ago

4.1.0

3 years ago

4.0.1

3 years ago

4.0.0

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.0.0

3 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.5

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.1.0

4 years ago

0.0.1

4 years ago

1.0.17

4 years ago