Hi,
i want to use quickblox chat application sdk integrating into my application.
Below are sdk url
http://quickblox.com/developers/Javascript
i used command for installing quickblox node_module in to ionic
npm install quickblox --save
On my home.ts i coded.
import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import * as $ from "jquery";
import * as quickblox from "quickblox";
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
CREDENTIALS:any = {
appId: 47473,
authKey: 'VFXeFEs9BXGNnzX',
authSecret: 'r4hrj7TUDF4gW-P'
};
constructor(public navCtrl: NavController) {
quickblox.init(this.CREDENTIALS.appId, this.CREDENTIALS.authKey, this.CREDENTIALS.authSecret);
quickblox.createSession(function(err, result) {
console.log(err);
console.log(result);
});
}
}
=======================================
ionic serve command gives below error
rollup: Treating ‘fs’ as external dependency
rollup: Treating ‘net’ as external dependency
===========================
above problem fixed by below command:
$ npm install @ionic/app-scripts@latest --save-dev
but when i run again ionic serve it give me blank page.
need help into integrate quickblox or applozic in to ionc2
Wating for help!!.