Search docs/
Getting StartedPlugins

Kommunicate

The plugin for the Kommunicate SDK. With the help of this plugin, you can easily add human + bot chat support functionality to you app. Refer to: TODO: insert site link For documentation: TODO: insert link

https://github.com/Kommunicate-io/Kommunicate-Cordova-Ionic-PhoneGap-Chat-Plugin

Stuck on a Cordova issue?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.

Contact Us Today!

Installation

ionic cordova plugin add kommunicate-cordova-pluginnpm install @ionic-native/kommunicatenpm install kommunicate-cordova-pluginnpm install @ionic-native/kommunicateionic cap sync
Ionic Enterprise comes with fully supported and maintained plugins from the Ionic Team. Learn More or if you're interested in an enterprise version of this plugin Contact Us

Supported Platforms

  • Android
  • Browser
  • iOS

Usage

React

See here.

Angular

import { Kommunicate } from '@ionic-native/Kommunicate';

constructor(private kommunicate: Kommunicate) { }
//also add [..., Kommunicate, ... ] inside the providers array, if required

var kmUser = {
   userId : 'randomstring',
   authenticationTypeId : 1
};

this.kommunicate.login(kmUser)
  .then((res: any) => console.log("Sucessfully logged in." + res))
  .catch((error: any) => console.error("Error logging in." + error));

var conversationObject = {
   isUnique : false
};

this.kommunicate.conversationBuilder(converationObject)
  .then((clientChannelKey: any) => console.log("Kommunicate create conversation successful the clientChannelKey is : " + clientChannelKey))
  .catch((error: any) => console.error("Error creating conversation." + error));