Hi,
I am developing an ionic-cordova application with chat by Openfire.
I can’t get the strophe.si-filetransfer.js plugin to work
This the declaration in index, html:
Hi, first of all beware importing js files like this , even if your are loading this js file in async mode you should really think about it since it will impact your app booting time.
You should install that strophe.js through npm if you want to import that package, otherwise you could try replacing your import { Strophe } from ‘strophe.js’ and do something like:
(supposing Strophe.js is exporting the object strophe, I’m pretty sure it’s case sensitive)
declare var strophe;
and then you use your object’s methods, for example: