What is the GoogleApiClient Reconnect Policy after a connection gets suspended?

Viewed 678

The vague javadoc of GoogleApiClient tells us that:

GoogleApiClient.ConnectionCallbacks.onConnectionSuspended

is going to be :

Called when the client is temporarily in a disconnected state. This can happen if there is a problem with the remote service (e.g. a crash or resource problem causes it to be killed by the system). When called, all requests have been canceled and no outstanding listeners will be executed. GoogleApiClient will automatically attempt to restore the connection. Applications should disable UI components that require the service, and wait for a call to onConnected(Bundle) to re-enable them.

Unfortunately it doesn't tells us how many times it will retry to "restore" the connection. Is there any timeout, exponential backoff , number of retries ?

If it doesn't succeed magically restoring the connection does it call:

OnConnectionFailedListener.onConnectionFailed

and when ?

1 Answers
Related