Ionic 2 and Quickblox integration


#1

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!!.


#2

Hi @prabhat_patel, have you managed integrating quickblox ?


#3

Yes i have done text messaging and media upload


#5

@prabhat_patel can you please share about how to use quickblox for chatting in ionic 2 and angular 2 app


#6

Skype: prabhat.patel87


#7

Hi. It’s possibile to have some tips? I’m facing many different problems integrating quickblox.

Atm i’m on a ionic 3/angular 4 project.

Thanks you very much.


#8

please accept request on skype , i have sent you day before


#9

Share with the community will be a way better idea! :wink:


#10

Hi @prabhat_patel have you integrate the quickblox in ionic3 and anguler 4 app can you help me out through steps


#11

I’ve made a simple demo of the implementation in Ionic 3