Strophe si-filetransfer with ionic cordova

10 views
Skip to first unread message

Maurizio Poli

unread,
Mar 30, 2020, 1:07:10 PM3/30/20
to Strophe
HI,
I am developing an ionic-cordova application with chat via Openfire.
I can’t get the si-filetransfer plugin to work

This are the npm packages:

    "strophe.js": "^1.2.14",
    "strophejs-plugin-http-file-upload": "^1.0.3",
    "strophejs-plugins": "0.0.7",

and this the code in file .ts:

      import { Strophe } from 'strophe.js';
      ........

      this.connection.si_filetransfer.addFileHandler(self.fileHandler);
      this.connection.ibb.addIBBHandler(self.ibbHandler);


but 'connection.si_filetransfer’ and ‘connection.ibb’ are always ‘undefined’

How can I import si_filetransfer and make it working?

Can anyone help me?

thanks in advance
Reply all
Reply to author
Forward
0 new messages