infinitered / reactotron-react-native

Reactotron's react-native client.
MIT License
110 stars 27 forks source link

How can I use the reactotron in a release version? #808

Closed joseviniciusnunes closed 3 years ago

joseviniciusnunes commented 3 years ago

Hello, I would like to use the reactotron in release mode of the app, to pass it to the person in charge of the backend to perform his tests

In release version it just doesn't work, it doesn't connect, I passed the right host and nothing, can someone help me? When used in debug mode it works right on the smartphone.

Is there any way that I can catch the connection error in the reactotron websocket?

Thanks!

Reactotron.setAsyncStorageHandler(AsyncStorage)
     .configure({
         name: 'My App',
         host: '192.168.1.3',
         onConnect: () => {
             Alert.alert ('test', 'connect');
         },
     })
     .useReactNative()
     .connect();
joseviniciusnunes commented 3 years ago

Solved

Add android:usesCleartextTraffic="true" to AndroidManifest