cordova-plugin-zoojoobe
v0.4.6
Published
Official Cordova/PhoneGap plugin for Zoojoobe
Downloads
71
Maintainers
Readme
Zoojoobe for Cordova/PhoneGap
Zoojoobe journey for Android Cordova or Phonegap
- Supports Android.
- iOS (IN PROGRESS)
Installation
Cordova
To install the plugin in your Cordova app, run the following:
cordova plugin add cordova-plugin-zoojoobe
PhoneGap
To add the plugin to your PhoneGap app, add the following to your config.xml
:
<plugin name="cordova-plugin-zoojoobe" version="~0.4.6" />
API KEY
Defining the app_id and api_key in your config.xml
:
<preference name="zoojoobe-app-id" value="xxxxxx" />
<preference name="zoojoobe-ios-api-key" value="xxxxxx" />
<preference name="zoojoobe-android-api-key" value="xxxxxx" />
You can then use Zoojoobe like this:
Step 1:
Register the user on DeviceReady
window.zoojoobe.registerIdentifiedUser({email: '[email protected]'});
( OR )
window.zoojoobe.registerIdentifiedUser({userId: 'XXXXXXXXXX'});
Step 2:
Call the zoojoobe window by calling the show() function on click of the button
document.getElementById("open-zoojoobe-btn").addEventListener("click", function(){
window.zoojoobe.show();
}, false);