Forum: Android

Here is a forum space for SDK: Android.

46. onDisconnect reasons are ambigious

With HelloPTT app, when I call PTTClient's "connect" method with an IP address and port, I see a log message says:
"D/PTTService: onDisconnected reason : 3"

onProvision Log is:
"D/PTTService: onProvisioned initialJson : {"UserName":"user6","NationCode":"tr","MinAppVersion":"2.0.2","LastAppVersion":"3.2.13","CheckedEmail":"false","UserEmail":"admin@*****.ptt.tr","NewNotificationCount":"0","NewsCount":"0","EnableVideoSharing":"true","EnableMultiVideoSharing":"true","EnablePush":"true","EnablePhotoSharing":"true","EnableChat11":"true","ServerVersion":"3.2.0"}"

Documentation describes reasons, where "3" is "Upgrade". I do not know what to upgrade.

**Tried with both SDK version 1.3.1 and 2.1.4  

Aug 30 '18 at 19:05 (GMT0) created by Tolga Turan

 
Dear  Tolga Turan,
Could you try to do it again?
If there is it still, please let me know it.
Thanks,
ProPTT2

Aug 31 '18 at 05:10 (GMT0) created by ProPTT2 dev

 
This is removed.

Aug 31 '18 at 11:37 (GMT0) created by Tolga Turan

 
I figure out the meaning for reason 3.
It was about default config

defaultConfig {
        applicationId "com.imptt.proptt
        minSdkVersion 19
        targetSdkVersion 27
        versionCode 3
        versionName "1.2"
    }

When I change "versionName" to 3.xx it works fine.

Aug 31 '18 at 11:38 (GMT0) created by Tolga Turan

 
 
We updated the server 6 hours ago.
Did you test it after then?
And we guess you need to change applicationId also.
Thanks,
Tony

Aug 31 '18 at 13:50 (GMT0) created by ProPTT2 dev

 
 
Yes, I tested recently with "versionName 1.2" and got onDisconnect reason 3.
Keeping "versionName" related to the "versionCode" is the solution for me.
Thank You.

Aug 31 '18 at 14:15 (GMT0) created by Tolga Turan

 
 
Please contact to us at https://www.proptt2.com/en/support_contact.html
I guess we need to your test information to verify it.
Thanks,
ProPTT2.

Aug 31 '18 at 14:51 (GMT0) created by ProPTT2 dev