Intercom-cordova plugin with ionic


#1

Hello
I am trying to install intercom cordova plugin - https://github.com/intercom/intercom-cordova

Its giving me below error.

Fetching plugin “https://github.com/intercom/intercom-cordova” via git clone
Installing “cordova-plugin-intercom” for android
Failed to install ‘cordova-plugin-intercom’:CordovaError: Plugin doesn’t support this project’s cordova-android version. cordova-android: 4.0.0-dev, failed version requirement: >=4.0.0
at checkEngines (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:116:29)
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)

I have installed crosswalk browser so my android version is already 4.0.0. Can someone help please to see what could be the problem ?


#2

Unfortunately, using Crosswalk does not do anything to the Android version your phones runs on, it just lets you embed latest verison of Chromium in your app.

This error message means the version of cordova for Android is 4.0.0-dev and is not recent enough. You just have to upgrade cordova.

npm install -g cordova
cd my_project
cordova platform update android

#3

Thanks I got it updated now based on your instructions. I really appreciate it.