react-native-zohosalesiq-mobilisten v10.0.5
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 12.
Android: Ensure that your project meets the following requirements:
- Minimum Android Version: Android 5.0 (Lollipop) (API Level 21)
- Compile SDK Version: 34 (Android 14)
- Required Permissions:
- android.permission.INTERNET (Required for network operations)
Installation
Follow the below steps given below to complete installation of Mobilisten in your React-Native app.
- Install the react-native-zohosalesiq-mobilisten package using NPM.
npm install react-native-zohosalesiq-mobilisten --save- Link the module with the react native app
react-native link react-native-zohosalesiq-mobilistenInstallation steps for iOS
Navigate to the
iosfolder in the project directory.Run the
pod repo update && pod installcommand from theiosdirectory.
For the RNZohoSalesIQ version below 10.0.0:
Open your 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'- Run
pod installafter saving the changes made to the Podfile.
Note: If you're updating from the SDK versions below 10.0.0 to above, remove the above path in your Podfile and run the pod install in the iOS folder.
Installation steps for Android
- 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-mobilistenAndroid: 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.gradlefile insidedependencies
implementation project(':react-native-zohosalesiq-mobilisten')- Add the below snippet to
android/app/src/main/java/com/module_name/MainApplication.javaif 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;
}- Navigate to the
androidfolder within the project directory using Android Studio or any other platform of choice for Android development. Add the following maven repository to thebuild.gradleorsettings.gradlefile.
For Gradle version 6.7 and below
// Add the following to your project's root build.gradle file.
allprojects {
repositories {
google()
mavenCentral()
// ...
maven { url 'https://maven.zohodl.com' }
}
}For Gradle version 6.8 and above
// Add the following to your settings.gradle file.
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
// Add the Zoho Maven URL here
maven { url 'https://maven.zohodl.com' }
}
}Proguard rules:
If you have enabled ProGuard(minifyEnabled) R8, then please add the following rules in yourproguard-rules.profile in yourandroidfolder.
-dontwarn kotlinx.parcelize.Parcelize- Click
Sync Nowfrom the toolbar on the IDE.
Initializing Mobilisten
- Generate
AppandAccesskeys for iOS and Android platforms by providing your bundle id. - Use the
ZohoSalesIQ.initWithCallbackAPI 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
});- 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.
9 months ago
10 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago