I am working on my android app. I am using back4app for data storage. I want to know how to stop/cancel the get/post request. Because some time internet is slow, data is not enough which causes my application to crash. How can i handle this scenario?
Asked
Active
Viewed 114 times
1
-
Can you share your current code, the line that is crashing and any logs that you have? – Davi Macêdo Jan 06 '20 at 00:36
-
@DaviMacêdo there is no line crashing my app i want to know how can i cancel the request if user is disconnected or closed the application for some reason. – Fahad Bin Asif Jan 06 '20 at 11:31
-
Do you mean cancel it of being processes on the server side or just cancel it in client side and stop waiting for its response? – Davi Macêdo Jan 06 '20 at 18:28
-
Yes cancel it in client side. How can i do that? – Fahad Bin Asif Jan 08 '20 at 00:31
-
It is currently not possible. You can follow [this](https://community.parseplatform.org/t/how-to-cancel-query-operaiton-android/625) thread regarding this. – Davi Macêdo Jan 08 '20 at 19:38