google api java client - GoogleApiClient.isConnected() returns true in airplane mode -
we're experiencing following behavior doesn't seem make sense: attempt connect instance of googleapiclient
succeeds , calling isconnected()
in our instance of googleapiclient
returns true when it's clear client cannot connected service.
in order confirm behavior enabled airplane mode before starting app , i'm printing value returned isconnected()
equals true
.
so i'm confused. expected behavior or bug? reporting successful connection because api handles being offline transparently?
this isconnected() call has nothing whether device has connectivitiy, explains whether connected google play services service on device itself. there number of operations can't performed until you've connected service, can performed whether or not user online (e.g. writing plus moments).
there no call determine if user connected internet because there known ways that, , connection tenuous. because user connected when start activity doesn't mean they'll connected in couple minutes (or seconds) when you're ready make call.
that being said, make connection service internet connection needed (particularly when authorizing app).
Comments
Post a Comment