loqui / im

Loqui IM allows you to use all your chat accounts in just one FirefoxOS or Ubuntu Touch app.
https://loqui.im
304 stars 112 forks source link

Ubuntu Touch Edition #1135

Closed nfsprodriver closed 7 years ago

nfsprodriver commented 7 years ago

After some attemts I finally got Loqui IM running on Ubuntu Touch. The main problem was the loqui.json file, which had too old properties (e.g. webview missing). I only tried Whatsapp, which actually has a problem with the token, so an effective use isn't possible yet. I hope this is a step forwards for Ubuntu Touch users.

cmeerw commented 7 years ago

I am assuming WhatsApp registration fails because Ubuntu Touch doesn't allow the application to set the User-Agent header when sending the registration request. The only thing that will likely work is XMPP via a Websocket connector.

nfsprodriver commented 7 years ago

So, which User Agent is necessary?

cmeerw commented 7 years ago

see tokenData.json "u": "WhatsApp/2.16.9 S40Version/14.26 Device/Nokia302"

Looks like you might be able to pass that in via --user-agent-string

nfsprodriver commented 7 years ago

Yeah, thanks! Got SMS. But after checking the code, nothing happens.

cmeerw commented 7 years ago

Because there is no API for raw TCP sockets on Ubuntu Touch, so LoquiIM is unable to connect...

nfsprodriver commented 7 years ago

And let me expect: There's no simple way out of it, right?

cmeerw commented 7 years ago

Exactly, the lack of an API for raw TCP sockets is the main issue for Ubuntu Touch support (and any other ports).

cmeerw commented 7 years ago

BTW, one relativelty easy option would be to have small native application that provides a Websocket-to-TCP proxy and launches the webapp container.

nfsprodriver commented 7 years ago

Thanks! I tried Shadowsocks with my Windows Laptop as server and Ubuntu Phone as client without success.

cmeerw commented 7 years ago

Just to clarify, there are still code changes needed to make it work, but those changes should be fairly straightforward.

cmeerw commented 7 years ago

I have merged most of the pull request (except for the README changes and the --inspector). BTW, see #944 for another update...