Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Editor Hosting Issues with Android (Cleartext HTTP traffic not permitted)

Discussion in 'Addressables' started by yuch3n, Apr 16, 2020.

  1. yuch3n

    yuch3n

    Joined:
    Sep 26, 2018
    Posts:
    26
    I'm on Unity 2018.4.15f1, Addressables 1.7.4

    I'm building for a Pixel 2 device and cannot seem to download Addressables hosted by the editor. When I open the application I get "Cleartext HTTP traffic not permitted" followed by "Unknown error in AsyncOperation". I know that editor hosting is working correctly because if I run the game through editor, it's able to load the assets. And, when I go to the url that the device logs are complaining about in a browser, I'm able to to download the .bundle file.

    I did some Googling and it seems like this error is caused by some changes to Android 8 that do not allow connection over http. So I tried changing my Load Paths to use https instead. Quickly learned that's not supported (https://forum.unity.com/threads/does-addressables-support-ssl-https.711308/), so I tried to get android to start accepting http again (Tried the suggestions in https://forum.unity.com/threads/android-9-cleartext-http-traffic-to-my_ip-not-permitted.594298/) but ultimately that didn't get me anywhere (Internal builds are apparently removed in future versions? And I wasn't able to get the manifest file to parse correctly).

    Any ideas? Or should I just give up trying to use editor hosting on android? :(
     
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,796
    I'll flag this for the team to have a look!
     
  3. yuch3n

    yuch3n

    Joined:
    Sep 26, 2018
    Posts:
    26
    Thank you!
     
  4. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,796
  5. yuch3n

    yuch3n

    Joined:
    Sep 26, 2018
    Posts:
    26
    Filed a bug report. Hope this can be resolved soon. Thank you!