How will API report communication errors?

Former Member
Former Member
My app is doing simple makeJsonRequest() calls to talk to a website. How will the API behave if there is a problem connecting?

1. Bluetooth link to phone failed / doesn't exist
2. Bluetooth link OK but Internet connection failure (no WiFi or mobile data from phone)
3. Internet connection but no response from website (very slow connection, or broken website)

I think for (3) the response callback is called with responseCode = NETWORK_REQUEST_TIMED_OUT ?

Thanks