ChatSecure / ChatSecure-iOS

ChatSecure is a free and open source encrypted chat client for iOS that supports OTR and OMEMO encryption over XMPP.
https://chatsecure.org
Other
3.13k stars 1.03k forks source link

Push Service #1151

Open alito35 opened 5 years ago

alito35 commented 5 years ago

It seems that with the last update from 20 days ago, the push notification stopped working. I see in server information, that it uses push.chatsecure.org, but the account are registering with pubsub.chatsecure.org. prosody is connecting to pubsub through xmpp on cloud notify, is that the correct way? should I make an api call to push.chatsecure.org?

licaon-kter commented 5 years ago

Why do you need to modify it? Shouldn't the client register w/ the correct one?

alito35 commented 5 years ago

just trying to figure out what changed, since it used to work ok.

Aug 20 20:37:58 xxxx.com:cloud_notify debug Sending push notification for alito@xxxx.com to pubsub.chatsecure.org (C9D60032-8D05-4A1A-9F18-XXXXXXXXXXX) Aug 20 20:37:58 stanzarouter debug Routing to remote... Aug 20 20:37:58 s2sout55d4b553c330 debug going to send stanza to pubsub.chatsecure.org from xxxxx.com Aug 20 20:37:58 s2sout55d4b553c330 debug sending: Aug 20 20:37:58 s2sout55d4b553c330 debug stanza sent over s2sout Aug 20 20:37:58 c2s55d4b583f480 debug Handled 106 incoming stanzas Aug 20 20:37:58 c2s55d4b583f480 debug Received[c2s]:

but know it seems it won't send any notification to the phone, unless the app is still open.

if i do a tcpdump... the server is trying to do the push to pubsub.chatsecure.org

15:42:26.620609 IP (tos 0x0, ttl 64, id 41172, offset 0, flags [DF], proto TCP (6), length 1107) x.x.x.x.57394 > 45.55.5.246.5269: Flags [P.], cksum 0xd957 (incorrect -> 0xd408), seq 3165:4220, ack 1, win 347, options [nop,nop,TS val 3854178053 ecr 1376060845], length 1055 15:42:26.688193 IP (tos 0x0, ttl 57, id 23874, offset 0, flags [DF], proto TCP (6), length 52) 45.55.5.246.5269 > x.x.x.x.57394: Flags [.], cksum 0x54c2 (correct), seq 1, ack 4220, win 3623, options [nop,nop,TS val 1376062086 ecr 3854178053], length 0 15:42:29.549262 IP (tos 0x0, ttl 64, id 41173, offset 0, flags [DF], proto TCP (6), length 1107) x.x.x.x.57394 > 45.55.5.246.5269: Flags [P.], cksum 0xd957 (incorrect -> 0x996c), seq 4220:5275, ack 1, win 347, options [nop,nop,TS val 3854180982 ecr 1376062086], length 1055 15:42:29.616828 IP (tos 0x0, ttl 57, id 23875, offset 0, flags [DF], proto TCP (6), length 52) 45.55.5.246.5269 > x.x.x.x.57394: Flags [.], cksum 0x4255 (correct), seq 1, ack 5275, win 3623, options [nop,nop,TS val 1376062819 ecr 3854180982], length 0 15:42:29.746575 IP (tos 0x0, ttl 64, id 41174, offset 0, flags [DF], proto TCP (6), length 1107) x.x.x.x.57394 > 45.55.5.246.5269: Flags [P.], cksum 0xd957 (incorrect -> 0x2d89), seq 5275:6330, ack 1, win 347, options [nop,nop,TS val 3854181179 ecr 1376062819], length 1055 15:42:29.814089 IP (tos 0x0, ttl 57, id 23876, offset 0, flags [DF], proto TCP (6), length 52) 45.55.5.246.5269 > x.x.x.x.57394: Flags [.], cksum 0x3d40 (correct), seq 1, ack 6330, win 3623, options [nop,nop,TS val 1376062868 ecr 3854181179], length 0

alito35 commented 5 years ago

anybody else having this issue? does somebody have the push service working?

metabubble commented 5 years ago

I have just tried out ChatSecure today and even though openjabber.org should support it (https://compliance.conversations.im/server/openjabber.org/) it did not register correctly.