Hey there @Alexandre Hutsulyak, Emily here from Support Engineering 👋🏼
I can see that you opened up a conversation regarding this with Daniel which has since been resolved, nice!
For anyone else having this issue, we don't have official support for the Capacitor plugin, the @capacitor-community/intercom plugin is a 3rd party plug in we don't provide official support for. So unfortunately this would mean we would have no context around the styling of plugin.
But as this user was using Ionic (which we again don’t officially support), Intercom may work with both Ionic 1 & 2.
To use the Intercom with Ionic, run the following:
cordova plugin add cordova-plugin-intercom
Make sure you initialize Intercom correctly.
Ionic 1
For Ionic 1 you can use Intercom like this:
.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
cordova.plugins.intercom.registerIdentifiedUser({userId: "123456"});
cordova.plugins.intercom.setLauncherVisibility('VISIBLE');
});
})
Ionic 2
For Ionic 2 you need to add the folling variable to your app.component.ts:
declare var cordova:any;
You can then use Intercom like this:
this.platform.ready().then(() => {
cordova.plugins.intercom.registerIdentifiedUser({userId: "12345"});
cordova.plugins.intercom.setLauncherVisibility('VISIBLE');
});
However it is to be kept in mind that this method of installation is not officially supported, however it worked for this user to fix their issue 😀