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 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