Intercom - ERROR - 'apiKey' parameter must be a valid Intercom iOS SDK API key


#1

Hi

I have installed and followed instructions to install cordova plugin for Intercom + the ionic native wrapper. Something strange is happen but when the app is loading I receive this issue

ERROR - ‘apiKey’ parameter must be a valid Intercom iOS SDK API key.

Ant the ios API key is valid

My config.xml for intercom:

<plugin name="cordova-plugin-intercom" spec="^4.1.2">
        <variable name="INTERCOM-APP-ID" value="gnik7ff6" />
        <variable name="INTERCOM-IOS-API-KEY" value="ios_sdk-e529acc343eb278b832daaaf8f2cd8764fb80f01" />
        <variable name="INTERCOM-ANDROID-API-KEY" value="android_sdk-a57183d53c98707ef3d34a1db2edd247e71fb01c" />
    </plugin>

I have tried other options like

<plugin name="cordova-plugin-intercom" spec="^4.1.2">
        <preference name="INTERCOM-APP-ID" value="gnik7ff6" />
        <preference name="INTERCOM-IOS-API-KEY" value="ios_sdk-e529acc343eb278b832daaaf8f2cd8764fb80f01" />
        <preference name="INTERCOM-ANDROID-API-KEY" value="android_sdk-a57183d53c98707ef3d34a1db2edd247e71fb01c" />
    </plugin>

Nothing work. Any help is welcome :slight_smile:


#2

I can close… solved

Preferences doesn’t goes inside the plugin definition. My fault