Hello everyone. I am developing an app in React Native that connects to my laptop using the ‘meteorrn/core’ package, where I host a web page made with Meteor and React Native. The app utilizes Meteor’s account and session system, as well as its methods for exchanging information between the server and the application. I am using Expo, and when previewing the app in the ‘Expo Go’ tool, everything works fine. However, when I generate an APK, the Meteor package seems to simply not work.
For example, the first thing that needs to be done when starting the app is to log in. But when pressing the button that triggers this action, nothing happens, not even an error in the function responsible for it. Any idea what might be happening?
It’s better to research logging and how you can add it to your app. This can save you a lot of effort in the future trying to figure out what is happening to your app.
Regarding not having a network connection, then there is no way for your app to connect to your server and log the user
I’m sorry. The issue was that I needed to add a line of code in the Android manifest allowing the connection via HTTP since apparently it comes disabled by default:
android:usesCleartextTraffic="true"
inside the “application” tag.
I’m sorry for rushing and blaming the library for this.