Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different behaviours of android smack and ios xmppframework on ejabberd #1673

Closed
tolgatanriverdi opened this issue Apr 14, 2017 · 5 comments
Closed

Comments

@tolgatanriverdi
Copy link

tolgatanriverdi commented Apr 14, 2017

Hi
We are using ejabberd as our chat application's xmpp server. (ejabberd 16.09)
We are connecting to ejabberd with using
IOS: XMPPFramework (Robbie Hanson)
Android: Smack API

We've set the ejabberd mod_ping timeout to 20 seconds(10 seconds ping interval, 10 seconds timeout)

In IOS XMPPFramework, when the internet connection lost(changing device to airplane mode), ejabberd pings the device and when it cannot receive any response from the device (within 20 seconds) it automaticly disconnects the user . (Which is what we exactly wanted)

However in Android Smack API , when the internet connection lost(changing device to airplane mode), the user seems online to all other users for 5 minutes 20 seconds so during that time all messages that this user received will be lost.(Because actually the user is not online).

We dont know what is the difference between connecting with IOS XmppFramework and Android SmackApi. Do you know are there any parameters to bypass ejabberds mod_ping checks.
If there are those kind of parameters, can you tell me what are they and how can we change it

Thanks

@tolgatanriverdi tolgatanriverdi changed the title Differences behaviour of android smack and ios xmppframework on ejabberd Different behaviours of android smack and ios xmppframework on ejabberd Apr 14, 2017
@badlop
Copy link
Member

badlop commented Apr 17, 2017

You can try a network sniffer to see the difference at network level between both libraries. There's Wereshark, or Ethereal, or I use "sudo tcpflow -i lo -Cg port 5222".

@badlop badlop closed this as completed Oct 26, 2017
@Jethvasagar
Copy link

@tolgatanriverdi @badlop I have fetching same issue in smack library as you explain above. how can do archive this XMPPFramework functionality on smack api ?

@xiifwat
Copy link

xiifwat commented Feb 18, 2019

Hi. I'm using Smack version 4.3.1 and facing the same issue for Android. Is there any solution?

@mremond
Copy link
Member

mremond commented Feb 18, 2019

The ticket is about difference of behaviour with ping, so you should ensure that Smack library supports anwering to ping packets and that the feature is enabled.

@lock
Copy link

lock bot commented Feb 18, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Feb 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants