import { Kommunicate } from '@awesome-cordova-plugins/Kommunicate';
constructor(private kommunicate: Kommunicate) { }
var kmUser = {
userId : 'randomstring',
authenticationTypeId : 1
};
this.kommunicate.login(kmUser)
.then((res: any) => console.log("Sucessfully logged in." + res))
.catch((error: any) => console.error("Error logging in." + error));
var conversationObject = {
isUnique : false
};
this.kommunicate.conversationBuilder(converationObject)
.then((clientChannelKey: any) => console.log("Kommunicate create conversation successful the clientChannelKey is : " + clientChannelKey))
.catch((error: any) => console.error("Error creating conversation." + error));