Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Clear text traffic to localhost for AdColony

Discussion in 'Unity Mediation' started by Fr3driiik, May 5, 2022.

  1. Fr3driiik

    Fr3driiik

    Joined:
    Feb 20, 2022
    Posts:
    4
    I am testing out my integration with AdColony and I am getting a warning about having clear text traffic disabled. So as I understand it AdColony SDK needs clear text traffic to be enabled for localhost, to buffer ads (maybe?).
    I am no longer able to edit that in network_security_config.xml and use it in the AndroidManifest.xml (as explained here under Android Changes) and I don't want to enable clear text traffic for all traffic by using this:

    Code (xml):
    1. <?xml version="1.0" encoding="utf-8"?>
    2. <manifest ...>
    3.     <application
    4.         ...
    5.         android:usesCleartextTraffic="true"
    6.         ...>
    7.         ...
    8.     </application>
    9. </manifest>
    How do I enable clear text traffic only for localhost?
    Maybe it should be possible to configure that for the AdColony adapter?

    Editor version 2021.3.1f1
     
    Last edited: May 5, 2022
  2. KaOzz

    KaOzz

    Joined:
    Oct 15, 2012
    Posts:
    82
    Same question here, anybody?
     
  3. DeclanMcPartlin

    DeclanMcPartlin

    Unity Technologies

    Joined:
    Nov 19, 2020
    Posts:
    146
    We will take a look if we can find this answer internally, but since this is a question specifically for AdColony, we recommend reaching out to them - thanks!