i am working on an App which should check the online status before data is sent to an API. Based on the status it should also route to a different location. Prior to the XHR