Code Monkey home page Code Monkey logo

salesiq-mobilisten-flutter's Introduction

SupportedLanguages Version

Zoho SalesIQ Mobilisten Flutter Plugin

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.

Note Zoho SalesIQ is GDPR Compliant! The configurations for the website and Mobile SDK remain the same; if you have already configured on your site, it will be automatically reflected in Mobile SDK. If not, then learn how to configure now.

Installation:

Please follow the steps mentioned below to install the Mobilisten plugin in your Flutter mobile application.

Requirements

Android: minSdkVersion 21 or above is required.

iOS: iOS 12 or above is required. The minimum version of Xcode required is Xcode 13.

Installation steps:

  1. Add Mobilisten as a dependency within the pubspec.yaml file as shown below.
dependencies:
  flutter:
    sdk: flutter
+ salesiq_mobilisten: ^6.0.0
  1. Run flutter pub get to fetch dependencies for the project.

  2. Navigate to the ios directory and run the pod install command.

  3. Add the following permissions in the Info.plist file for the iOS Runner project. Mobilisten iOS Permissions Info.plist

  4. Open the android directory in Android Studio or any IDE used for Android development. Open the project build.gradle file and add the following maven repository.

allprojects {
    repositories {
        .....
        maven { url 'https://maven.zohodl.com' }
    }
}

Now, click on Sync Now or use the Sync Project with Gradle Files option under the File menu.

  1. Generate the App and Access keys for iOS to initialize Mobilisten. In the Zoho SalesIQ console, navigate to SettingsBrandsInstallationiOS. Enter the bundle ID for the application as shown in the below example and Click on Generate. iOS Mobilisten Generating App and Access Keys Note the App and Access keys generated for iOS to be used in further steps. iOS Mobilisten Copy App and Access Keys

  2. Generate the App and Access keys for Android to initialize Mobilisten. In the Zoho SalesIQ console, navigate to SettingsBrandsInstallationAndroid. Enter the bundle ID for the application as shown in the below example and Click on Generate. Android Mobilisten Generating App and Access Keys Note the App and Access keys generated for Android to be used in further steps. Android Mobilisten Copy App and Access Keys

  3. Open the main.dart file inside the lib directory and import Mobilisten as shown below. With this, additionally import dart:io to check the current platform which will be used at a later stage.

import 'dart:io' as io;
import 'package:salesiq_mobilisten/salesiq_mobilisten.dart';
  1. Initialize Mobilisten using the init API within the initState() method in the main.dart file.
if (io.Platform.isIOS || io.Platform.isAndroid) {
    String appKey;
    String accessKey;
    if (io.Platform.isIOS) {
        appKey = "INSERT_IOS_APP_KEY";
        accessKey = "INSERT_IOS_ACCESS_KEY";
    } else {
        appKey = "INSERT_ANDROID_APP_KEY";
        accessKey = "INSERT_ANDROID_ACCESS_KEY";
    }
    ZohoSalesIQ.init(appKey, accessKey).then((_) {
        // initialization successful
        ZohoSalesIQ.showLauncher(true); // Invoking showLauncher is optional.
    }).catchError((error) {
        // initialization failed
        print(error);
    });
}
  1. Build and run the flutter application on Android and iOS.

API Documentation

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.