1. Home
  2. WalkMe Mobile
  3. Mobile: Setup and Integration
  4. Mobile: Hybrid
  5. Mobile: How To Integrate the WalkMe Mobile SDK with Cordova Plugin

Mobile: How To Integrate the WalkMe Mobile SDK with Cordova Plugin

Updated on December 24, 2018
Download PDF

The WalkMe SDK supports integration with all WebView-based hybrid apps. WalkMe provides its logic and user interface at the native level, so there’s no risk of performance issues or need for code changes in the host app.

This article explains how to integrate the WalkMe SDK with a hybrid app using Cordova plugin.

Steps For Integration

Installation using CLI

$ cordova plugin add cordova-plugin-walkme-sdk

Or from git:

$ cordova plugin add https://github.com/abbiio/cordova-plugin-walkme-sdk.git

Manual installation

Android

  1. Add the following xml to your config.xml in the root directory of your www folder:
    <feature name="WalkMeSDK">
    <param name="android-package" value="cordova.plugin.walkme.sdk.WalkMeSDK" />
    </feature>
  2. Copy WalkMeSDK.js to www/js/plugins and reference it in index.html:
    <script type="text/javascript" src="js/plugins/WalkMeSDK.js"></script>
  3. Download the source files and copy them to your project.
    • WalkMeSDK.java

iOS

  1. Add the following xml to your config.xml in the root directory of your www folder:
    <feature name="WalkMeSDK">
    <param name="ios-package" value="WalkMeSDK" />
    </feature>
  2. Copy WalkMeSDK.js to www/js/plugins and reference it in index.html:
    <script type="text/javascript" src="js/plugins/WalkMeSDK.js"></script>
  3. Download the source files and copy them to your project.
    • WalkMeSDK.h
    • WalkMeSDK.m
    • WalkMeSDK.framework

Usage

For Ionic

this.platform.ready().then(() => {
...
  window.cordova.plugins['WalkMeSDK'].start('<App-Key>', '<App-Secret>');
});

For Cordova

document.addEventListener("deviceready", function() {
...
  window.cordova.plugins['WalkMeSDK'].start('<App-Key>', '<App-Secret>');
}, false);

Was this article helpful?

Related Articles