npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-native-zohosalesiq-mobilisten

v9.3.1

Published

A React Native module for the ZohoSalesIQ Mobilisten SDK

Downloads

6,016

Readme

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 12.

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.