I am developing a chat app in Android which runs in all versions of Android ( starting from 2.3.5 to the latest kitkat) and every thing is working fine when it comes to chatting, but I am facing one BIG issue.
The issue is when I generate the apk and install the apk in Android mobile (using package installer), the user goes offline in some time ( say in XYZ mins ).In S3 it is 40 mins and in S5 it is 30 mins and in htc desire hd it is 20 mins after which the user is disconnected.
But when I install the same app using Eclipse to an android phone, the user is online ( as I am checking the status of the XMPP connection every 5 seconds and reconnecting if there is a disconnect to the ejabberd server even after 1 day which is as expected)
I am terribly confused as whether I am doing something wrong when I generate apk from the Android project. But not to my knowledge.
If anyone can shed some light on this blocker issue I will be really greatful.
I am using asmack library and the version is asmack-android-8-4.0.4
Honestly I am not finding any issue with the ejabbered server nor with the ejabberd server.
Any pointers to solve the issue will be greatly appreciated. Please let me know if you need any additional info.
To summarize its the installation mode which is giving me issues and sleepless nights
Thanks