Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[Android][DevSupport] Add Network Security Config file (fixes #22375) #23105
The packager falls into this category and therefore gets blocked; resulting in the app being unable to connect to it.
Domains/IPs for the config have been taken from here.
This change only adds to DevSupport android resources - so won't affect builds without DevSupport, e.g. release builds.
[ANDROID] [DevSupport] add Network Security Config file to allow access to packager via cleartext requests in Android API 28 and above. (fixes #22375)
Built an app API 28 Android App with RN Android building from source, prior to this change the packager would not connect and show the following Error in Android logs;
After applying this change the connection is now successful.