Search Unity

Lost connection best practices

Discussion in 'Addressables' started by tea42, Nov 5, 2018.

  1. tea42

    tea42

    Joined:
    Jul 10, 2013
    Posts:
    18
    Hello,

    I'm currently trying to fix an issue where our addressables download won't restart/continue once connection is lost and then then regained.

    Current steps to reproduce:
    Load app on ios with addressables set up (make at least one of this fairly large for easy testing)
    Kick off a download using preloaddependencies or loadasset
    Put app in the background (don't close it), go to your ios Settings and turn off wifi/mobile data
    Go back into the app and see a connection fail
    Go back to your mobile settings and turn on wifi/mobile data
    Go back to the app and start a new download

    Result : the new download seems to always fail or hang.

    I've tried using the following without success :
    preloadOperation.Release()
    preloadOperation.Reset();
    preloadOperation.ResetStatus()
    AsyncOperationCache.Instance.Release(preloadOperation);
    AsyncOperationCache.Instance.Clear();

    Could anyone let me know what the correct method for restarting a preload should be?

    Many thanks in advance
     
    Last edited: Nov 6, 2018
  2. tea42

    tea42

    Joined:
    Jul 10, 2013
    Posts:
    18
    Anyone?
     
  3. unity_bill

    unity_bill

    Joined:
    Apr 11, 2017
    Posts:
    1,053
    Sounds like a bug. I've filed it in our system.
    -Bill
     
    tea42 likes this.
  4. tea42

    tea42

    Joined:
    Jul 10, 2013
    Posts:
    18
    Thanks Bill. Is there anyway to track the progress of this, and in the meantime, any temporary workaround you can suggest?
     
  5. unity_bill

    unity_bill

    Joined:
    Apr 11, 2017
    Posts:
    1,053
    no good way to track it unless you open an actual Unity bug report. For this bug, we've got a fix in. Assuming the fix actually works, it'll be in our next release (0.5.x) coming this week or next (hopefully).