2021年3月28日星期日

Try Catch block in React Native App to handle network failure

I am developing mobile app using react native. I am doing network access (cloud access) at one place. I have wrapped that part of code inside try-catch. I want to know:

  1. What should I put in catch block? What is the most graceful procedure/standard followed in PRODUCTION code to deal with network failures?
  2. (Continuing from above): What if my app crashes. How can I do crash analysis/analytics? What is the standard followed in PRODUCTION code.

I want to release my app, so I am seeking standard procedures followed in industry to release production code.

https://stackoverflow.com/questions/66846707/try-catch-block-in-react-native-app-to-handle-network-failure March 29, 2021 at 06:13AM

没有评论:

发表评论