maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   [WIP] Porting Whatsapp to Meego/Maemo (N9, N900) (https://talk.maemo.org/showthread.php?t=82384)

rash.m2k 2012-02-28 08:42

Re: [WIP] Porting Whatsapp to Meego/Maemo (N9, N900)
 
Have any of you guys read the XMPP RFC? Just curious about your level of expertise with XMPP.

I've read the most important chapters in the XMPP book - and MD5 digest is the standard way of authenticating - but it's being deprecated.

malkavian 2012-02-28 18:18

Re: [WIP] Porting Whatsapp to Meego/Maemo (N9, N900)
 
It's quite interesting. Great work guys. But I would only use whatsapp if I can register and use it with a false phone number. I won't ever give my phone number to whatsapp inc. His privacy politics are unacceptable for me.

I have read just last 5 pages, and hope not to make an answered question... Do you think would it be possible to register with for example 000 000 000 number (or wichever not existing mobile number in my country) and never give my real number to whatsapp inc?

whatsappneeder 2012-02-28 18:24

Re: [WIP] Porting Whatsapp to Meego/Maemo (N9, N900)
 
Quote:

Originally Posted by don_falcone (Post 1170958)
It already is, if you are so dependent on it. Just not for Maemo (yet). By the way: patience is a (lost?) virtue.

I meant whatsapp for maemo users?

baem90 2012-02-29 17:05

Re: [WIP] Porting Whatsapp to Meego/Maemo (N9, N900)
 
any new update guys?

rash.m2k 2012-02-29 17:26

Re: [WIP] Porting Whatsapp to Meego/Maemo (N9, N900)
 
Some info for you guys doing the dev work - while reading the book one thing was bugging me from the very first chapter and it didn't cover it until it was near the end.

That was power management - since the XMPP is a long lived TCP session which pretty much never expires it's just going to kill the battery, but clearly it doesn’t otherwise it would not have been used.

This power management feature is achieved by something called BOSH, this is where instead of the client keeping the TCP session alive a proxy sits between the client and the server the BOSH Connection Manager (BOSH CM) server keeps the session alive. The client then communicates with the BOSH CM by simple HTTP requests. The client is assigned a session id for this by the BOSH CM.

I’m guessing you guys may have seen something similar – if not it may help you debug some of this stuff.

voancea 2012-02-29 18:29

Re: [WIP] Porting Whatsapp to Meego/Maemo (N9, N900)
 
Quote:

Originally Posted by malkavian (Post 1171441)
It's quite interesting. Great work guys. But I would only use whatsapp if I can register and use it with a false phone number. I won't ever give my phone number to whatsapp inc. His privacy politics are unacceptable for me.

I have read just last 5 pages, and hope not to make an answered question... Do you think would it be possible to register with for example 000 000 000 number (or wichever not existing mobile number in my country) and never give my real number to whatsapp inc?

You can go and install google talk, skype and Extraplugins for Accounts UI

phpXpert 2012-02-29 21:35

Re: [WIP] Porting Whatsapp to Meego/Maemo (N9, N900)
 
Quote:

Originally Posted by rash.m2k (Post 1172172)
Some info for you guys doing the dev work - while reading the book one thing was bugging me from the very first chapter and it didn't cover it until it was near the end.

That was power management - since the XMPP is a long lived TCP session which pretty much never expires it's just going to kill the battery, but clearly it doesn’t otherwise it would not have been used.

This power management feature is achieved by something called BOSH, this is where instead of the client keeping the TCP session alive a proxy sits between the client and the server the BOSH Connection Manager (BOSH CM) server keeps the session alive. The client then communicates with the BOSH CM by simple HTTP requests. The client is assigned a session id for this by the BOSH CM.

I’m guessing you guys may have seen something similar – if not it may help you debug some of this stuff.

I think WhatsApp do not use the standard protocol. I went through their code both java and .net, I noticed that they send XML data through the output stream in binary. I am not sure if I can send and receive data in ASCII.

tgalal 2012-03-01 00:07

Re: [WIP] Porting Whatsapp to Meego/Maemo (N9, N900)
 
1 Attachment(s)
Updates: Conversation demo snapshot ;)

phpXpert 2012-03-01 00:10

Re: [WIP] Porting Whatsapp to Meego/Maemo (N9, N900)
 
Quote:

Originally Posted by tgalal (Post 1172338)
Updates: Conversation demo snapshot ;)

Hello Tarek
Well done, What you have done is really great.
Can you please share the login code with me
Are you communicating to their xmpp server using normal XML or using binary data?

SamGan 2012-03-01 00:33

Re: [WIP] Porting Whatsapp to Meego/Maemo (N9, N900)
 
Is success finally within reach?


All times are GMT. The time now is 16:29.

vBulletin® Version 3.8.8