Mobile bug: Offline handler ignores custom type and response

Hi, this may be a problem of me not understanding how the offline handler works, but i have been trying to make it so that if the device is offline it triggers a custom response, but i have been unable to do so. Since i was not receiving the custom response, i tried making the query trigger a failure and alert with it but i was also unable to do so.

This is how i configured the query:


And after running the query it triggers the other alert that is supposed to show only on success:

I have tried running the query offline on both the mobile versión with an android device and on the web versión on pc with the same results.

Just in case, i do not really need the query type to be a failure, this was my mean of testing the query offline. What i need is to make it so it returns a custom object as the response.

Hi @francisco.campos , thank you for reaching out! I have taken note of this bug to our team.
In the meantime, to figure out a proper workaround, could you provide more context on what you want to achieve?
My understanding is that you want to trigger some custom event when the device is offline. Is that correct?

I just want to know that the device is offline when a specific query is triggered.
Im currently running a query1 that calls an imageUploadQuery (an image upload to an s3) through code and I'm trying to receive the information that the device is offline so that i can work around it inside the code of query1. So what im most interested in is in the response field of the offline handler returning a custom object.

Hey @francisco.campos - one possible workaround is to look at the value of retoolContext.networkStatus if you want to create branching logic depending whether the device is online or not.