android_connectionbuddy icon indicating copy to clipboard operation
android_connectionbuddy copied to clipboard

Running on Android 9. Connectivity state changing from CONNECTED to Not_Connected then to Connected?

Open i-m-aman opened this issue 5 years ago • 0 comments

I have implemented your Library as you described but the onconnectionchange() is getting called 3 times - first for Connected then Not COnnected then Connected. And my Code which I have written in Connected condition getting called twice. This happens while the device is on MOBILE_DATA and not otherwise.

But the catch here is that in my Connected Condition I am sending the message from the device to my server which I think hinders the DATA_CONNECTION for a second and then again the network comes and onConnectionchange() called again.

is there any workaround for this type of problem?

It is not an issue but its irritating and many like me must have faced this problem

i-m-aman avatar Jul 22 '18 20:07 i-m-aman