librelist archives

« back to archive

Using conversejs with Cordova / Ionic / PhoneGap

Using conversejs with Cordova / Ionic / PhoneGap

From:
Simon Hill
Date:
2014-11-18 @ 19:26
Has anyone had any success using converse.js inside an HTML5 app framework
such as Ionic? Is that just a really bad idea? Before trying to make that
work, I thought I would ask this community first.

Thanks!
Simon

Re: [conversejs] Using conversejs with Cordova / Ionic / PhoneGap

From:
Jc Brand
Date:
2014-11-19 @ 14:19
On Tue, Nov 18, 2014 at 11:26:59AM -0800, Simon Hill wrote:
>    Has anyone had any success using converse.js inside an HTML5 app framework
>    such as Ionic? Is that just a really bad idea? Before trying to make that
>    work, I thought I would ask this community first.

I know there are people who have used Strophe.js (the XMPP lib which converse.js
depends on) with PhoneGap/Cordova. However, I haven't done this myself.

I think the main problem is that converse.js's UI/theme is not responsive.

Converse.js is basically a standalone application, not a library, so without
the UI, there's not much else to work with. All code is basically logic
supporting the UI.

Let me differentiate between the UI and the theme. The UI referring to the
control box, chat boxes, toolbars, tabs, user lists etc.

The theme referring mostly to the CSS, which dictates how it looks and also 
whether it behaves responsively.

Creating a responsive theme for converse.js is something I'd love to do, but
haven't been able to yet. If I had the chance, I'd probably use Bootstrap to
create one.

Two more potential issues are:

* Performance
* Battery drainage (see here: 
https://chatsecure.org/blog/fixing-the-xmpp-push-problem )

Cheers
JC