Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-native-meteor not working on android versions 9.0 and above #366

Open
ezrogha opened this issue Aug 7, 2020 · 1 comment
Open

Comments

@ezrogha
Copy link

ezrogha commented Aug 7, 2020

Hi, I have noticed that react-native-meteor doesn't run on android versions 9.0 and above when the app is run via apk, though it works properly on local(using dev server).
i.e
In my code nothing is executed after this line when using v9.0 and above via apk
Meteor.call('Account.checkEmailVerification', { email }, (err, ok) => {
All other versions execute perfectly.

Note: react-native-meteor works properly on all versions when run in development

Any help will be highly appreciated 🙏🏽

@ezrogha
Copy link
Author

ezrogha commented Aug 10, 2020

I fixed this by adding android:usesCleartextTraffic="true" to android manifest file. Read more about it here.
It occurs because android versions 9+ don't allow insecure connections in release builds. For my case I was connecting to ws:// which would have also worked if it were wss://

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant