Plugin Intercom


#1

I try to use plugin https://github.com/intercom/intercom-cordova, and I have problem.

In config.xml I have:
(…)
< plugin name=“cordova-plugin-intercom” spec="~1.1.2">
< preference name=“intercom-app-id” value=“xxxxx” />
< preference name=“intercom-android-api-key” value=“android_sdk-xxxxxxxxx” />
< /plugin>
(…)
Android_sdk i get from “Intercom for Android -> Get started -> Android”

In app.js:
angular.module(‘starter’, [‘ionic’])
.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
console.log(intercom);
intercom.registerUnidentifiedUser();
});
})

console.log(intercom) on phone, by GapDebug, show Object.
So I think plugin is loaded but something is wrong, but what?

Enviroment:
Cordova CLI: 5.3.3
Gulp version: CLI version 3.9.0
Gulp local:
Ionic Version: 1.1.0
Ionic CLI Version: 1.6.5
Ionic App Lib Version: 0.3.9
OS: Windows 7 SP1
Node Version: v0.12.7