Farzan
Farzan

Reputation: 11

socketException: Connection reset in react native then app freezes

I have got an issue that makes the app freeze, As I reload the app it will work normally. I tried debugging and it happens in these cases:

  1. If I put the app in the background and use other apps.
  2. Lock the phone, unlock it, and back to the app again.

Error message : java.net.socketException: Connection reset

Actions : try add network_security_config file to android manifest : android:networkSecurityConfig="@xml/network_security_config"

"react": "16.8.6",

"react-native": "^0.60.5",

"socket.io": "^2.2.0",

"socket.io-client": "^2.3.0",

How can I find the cause? and also how can I resolve it?

Upvotes: 0

Views: 879

Answers (0)

Related Questions