Error installing cordova-intercom@8.0.0 with cordova-ios

Hi there,

I’m installing cordova-intercom@8.0.0, everything works with Android but ios get error.

The error happens when run:
$ cordova platform add ios

To reproduce you need instal:
cordova: 9.0.0
cordova-ios: 5.0.1
cordova-intercom@8.0.0

  1. Clear plugins and platforms
  2. Add the cordova-intercom: $ cordova plugin add cordova-plugin-intercom --save
  3. run: $ cordova platform add ios

so, you get the error.

What solution I found?

If I install the cordova-intercom version 7.1.1 everything works :slightly_smiling_face:, the platform ios is ok to chat in Intercom.

package.json

{
  "devDependencies": {
    "cordova-plugin-battery-status": "~1.2.4",
    "cordova-plugin-camera": "~2.4.1",
    "cordova-plugin-device": "~1.1.6",
    "cordova-plugin-dialogs": "~1.3.3",
    "cordova-plugin-file": "4.3.3",
    "cordova-plugin-geolocation": "~2.4.3",
    "cordova-plugin-globalization": "~1.0.7",
    "cordova-plugin-inappbrowser": "~1.7.1",
    "cordova-plugin-media-capture": "~1.4.3",
    "cordova-plugin-network-information": "~1.3.3",
    "cordova-plugin-vibration": "~2.1.5"
  },
  "cordova": {
    "plugins": {
      "cordova-plugin-battery-status": {},
      "cordova-plugin-camera": {},
      "cordova-plugin-media-capture": {
        "CAMERA_USAGE_DESCRIPTION": " ",
        "MICROPHONE_USAGE_DESCRIPTION": " ",
        "PHOTOLIBRARY_USAGE_DESCRIPTION": " "
      },
      "cordova-plugin-device": {},
      "cordova-plugin-dialogs": {},
      "cordova-plugin-file": {},
      "cordova-plugin-geolocation": {},
      "cordova-plugin-globalization": {},
      "cordova-plugin-inappbrowser": {},
      "cordova-plugin-network-information": {},
      "cordova-plugin-vibration": {},
      "cordova-plugin-intercom": {}
    },
    "platforms": [
      "ios"
    ]
  },
  "dependencies": {
    "cordova-ios": "^5.0.1",
    "cordova-plugin-intercom": "8.0.0"
  }
}

Is it an issue? What I did wrong?

Hey! Just to be sure, are you explicitly removing the plug in with cordova plugin rm cordova-plugin-intercom ?

Do you think you’d be able to write into our support team? You can contact us through our messenger at intercom.com or by writing into team@intercom.io. Our Support Engineers will be able to help you out there!

Hi,

After get the error, the work around was to use the 7.1.1 version, to change to this version I did below steps:

  1. manually delete the folders /plugins and /platforms
  2. change the cordova-plugin-intercom version in package.json to 7.1.1
  3. add the ios platform again, so everything works.

I send a message to intercom team by chat, they sent me the 8.0.0 change log, but I already had seen.

Did you reproduce the above steps?

thank you for answer me.