ionic 1 cordova plugins code example
Example: iom plugin in ionic
import { Intercom } from '@ionic-native/intercom/ngx';
constructor(private intercom: Intercom) { }
...
this.intercom.registerUnidentifiedUser();
...
this.intercom.registerForPush();