![]() ![]() In Ubuntu 18.04, you can get your IP by: ip -c addr show ![]() You may need to open your firewall as well. To add to goldylucks's answer, you can use IP 192.168.0.10 if that is the IP of your PC running the React Native packager. Then, you need to clean and rebuild for Android! cd /android Go to /android/app/src/debug/res/xml/react_native_config.xmlĪdd a new line with your own IP address in the like: Īs my computer's local IP (check from ifconfig for linux) is 192.168.29.96, I added the above line in *** I found that in debug variant, there is already a network-security-config which is defined by react-native guys, that conflicts with the main variant. So, I tried to inspect my react-native app's source. Even after adding android:usesCleartextTraffic="true", I found this in the logcat: 06-25 02:32:34.561 32001 32001 E unknown:ReactNative: Caused by: : CLEARTEXT communication to 192.168.29.96 not permitted by network security policy Well, so after trying all possible solutions I found on the web, I decided to investigate the native Android logcat manually. You can now quit Terminal and eject the volume.This is applicable to Android 9.0+ according to the Network Security Configuration.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |