1.0.9 • Published 8 years ago

im-cordova-plugin-konotor v1.0.9

Weekly downloads
30
License
Proprietary
Repository
github
Last release
8 years ago

Konotor PhoneGap/Cordova Plugin

Platform Support

This plugin supports PhoneGap/Cordova apps with version 3.0.0 and above running on iOS and Android.

Installation

Automatic Installation using PhoneGap/Cordova CLI (for iOS and Android)

1 a) Install this plugin using PhoneGap/Cordova CLI:

Cordova 5 and above

 cordova plugin add cordova-plugin-konotor --variable APP_ID="YOUR_APP_ID" --variable APP_KEY="YOUR_APP_KEY"

Others

    phonegap plugin add https://github.com/konotor/phonegap-sdk.git --variable APP_ID="YOUR_APP_ID" --variable APP_KEY="YOUR_APP_KEY"

                                or

    cordova plugin add  https://github.com/konotor/phonegap-sdk.git --variable APP_ID="YOUR_APP_ID" --variable APP_KEY="YOUR_APP_KEY"

(Note that the Phonegap CLI didn't support --variable before version 3.6.3, so please use the Cordova CLI as shown above in case you're on an older version)

1 b) Alternately, configure for phonegap build in config.xml

<gap:plugin name="im-cordova-plugin-konotor" source="npm" version="1.0.1">
    <param name="KT_APP_ID" value="YOUR_APP_ID"/>
    <param name="KT_APP_KEY" value="YOUR_APP_KEY"/>
</gap:plugin>
  1. Add this script tag to your index.html:

    <input id="talkToUs" type="button" value="Talk To Us"></input>
  2. Add/update your index.js as follows:

    Add the following line in bindEvents function

     document.getElementById('talkToUs', addEventListener("click", this.talkToUs));
     

    Add the following line in onDeviceReady function

     konotor.init();

    Add a talkToUs method

     talkToUs: function() {
         konotor.launchKonotorScreen();
     }
1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago