Multi server capability for mobile apps
Currently neither desktop or android application allows accessing custom rocket.chat instance. They're strictly working only against demo server. To me, those apps without being able to reach our instance of rocket.chat are useless.
It directly loads login page when I launch the application. It should load some sort of settings page and ask for remote server address first.
Only good for technical end-users. And if typos were made, the install can be problematic.
What about a 'provisioning service' -- on web, over the phone, standalone tool -- that can issue a code that installer enters (and can be visually validated by installer with a logo and message of the organization/community) prior to install?
If I understand correctly, the root cause of the problem is that with the current design approach, the app is loading from pre-set remote server as soon as it starts.
As opposed to that, I think login page should not be loaded from the server right away, that page (with additional field to enter remote url as well) should be kept in the client side code. End user will get that page when they install the application. So upon start, the app renders the new login page without making any kind of remote connections or requests yet. Then when user enters the remote url, application will know what remote url/server to load from or communicate.
We can do this in the Electron application, but we don't know how to do this in Cordova.
I'm not %100 clear on what's the issue with cordova. Is it about not being able to make cross domain requests or something like that? If so, whitelisting is the issue maybe? https://cordova.apache.org/docs/en/4.0.0/guide_appdev_whitelist_index.md.html
The problem is that we use the Meteor compiler for Cordova that just pack the application in cordova. Probably we can do a lot more creating a new app from scratch.
@rodrigok - do you mean new cordova app from scratch?
And also is there any plan to fix the problem in electron (desktop version) where it seems possible atm? So at least we have a true desktop client for now...
It isn't a bug to fix, is a improvement since you can compile and run your own desktop app.
We can't define dates now because we need more help to do all this things :)
Will be great if someone help us with this issue.
I think you're right. Probably easiest approach is to do exactly like with the electron app. Make it separate. Then you could put a configuration page before the actual app.
After configuring you could load the app from the instance pointed to. Maybe caching as much as possible in the process.
Exactly @geekgonecrazy, so we need some help from someone with more knowledge about cordova, I have zero.
Agreed.. Should I create the Rocket.Chat.Cordova project?
:+1: I can help splicing in crosswalk. Perhaps others can contribute platform specific hacks.
:+1: Gladly help contribute as much as I can to making this work. From what I can tell it shouldn't take much.
Let's give it a try... https://github.com/RocketChat/Rocket.Chat.Cordova
is it a cordova app really necessary? I mean, a native iOS app is on the road, why create another app?
What's the roadmap for the native iOS app and native Android look like? If it's not soon, then I would say a Cordova app is needed to get custom instances supported right off the bat and then improve down the road with the native apps. Should the Cordova route be the one to take, I would be happy to continue testing and possibly help out as much as I can with any part of it.
@sampaiodiego mainly the need for creating another app is so the host connection screen can easily be done.
I'm working with @graywolf336 on another project using cordova. So we're kinda having to beef up on it.
Perhaps @gsaslis can give a rough ball park estimate. But industry average for native apps of similar complexity by a pro team is about 3 months to non-crashing beta. IMHO 3 months in Rocket.Chat time is almost a life time. How long has this repo been up ? :smile:
It should be a relatively easy and useful project. Can probably copy a lot from Meteor Cordova built?
@Sing-Li for sure takes a good while. A lot more to writing native. Not to mention a completely different language for each platform. Both of which are different then the web app / backend.
I probably wouldn't really count on the native apps being production-ready in any less than a month.. This is NOT to say we'll have sthn ready in a month, but there is some progress already... On the other hand, we've only really just started working on this and it's very (very!) hard to make any sort of estimates, especially since for most of us on the team this is a part-time project (if that : ) )
Any help on the native iOS side is definitely welcome!!! ; )
on the particular issue in this thread though, i think @rodrigok 's point about forking your own app is probably the best solution available right now... (?)