Skip to content

Instantly share code, notes, and snippets.

@heberth2788
Last active April 3, 2025 17:23
Show Gist options
  • Save heberth2788/6bfb473f64d9cadf9b42b5663ee92618 to your computer and use it in GitHub Desktop.
Save heberth2788/6bfb473f64d9cadf9b42b5663ee92618 to your computer and use it in GitHub Desktop.
Example of network security config for Android app to connect a local Firebase emulators
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<!--
Allow traffic to the Firebase Emulator Suite
See: https://developer.android.com/training/articles/security-config#CleartextTrafficPermitted
-->
<domain includeSubdomains="true">192.168.1.38</domain>
</domain-config>
</network-security-config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment