Created
September 25, 2024 08:46
-
-
Save RimuruDev/ab2b130c6243c1e0c6e373a0eb2428c2 to your computer and use it in GitHub Desktop.
CAS.AI Network security configuration :3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<network-security-config> | |
<domain-config cleartextTrafficPermitted="true"> | |
<domain includeSubdomains="true">127.0.0.1</domain> | |
</domain-config> | |
</network-security-config> |
For Assets/Plugins/Android/AndroidManifest.xml
Add:
<application
android:networkSecurityConfig="@xml/meta_network_security_config">
</application>
Example:
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.unity3d.player"
xmlns:tools="http://schemas.android.com/tools">
<application
android:networkSecurityConfig="@xml/meta_network_security_config">
<activity android:name="com.unity3d.player.UnityPlayerActivity"
android:theme="@style/UnityThemeSelector">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<meta-data android:name="unityplayer.UnityActivity" android:value="true"/>
</activity>
</application>
</manifest>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Assets/CleverAdsSolutions/Plugins/Android/AndroidManifest.xml