Search Unity

Windows store requests very slow

Discussion in 'Windows' started by starmindfr, Oct 21, 2018.

  1. starmindfr

    starmindfr

    Joined:
    Nov 7, 2016
    Posts:
    38
    Hello all

    Using unity and Universal windows platform (target 10) i have now a project working find on microsoft store

    I am now working on request for auto updates on store

    i am using code

    Code (CSharp):
    1.     IReadOnlyList<StorePackageUpdate> updates =
    2.         await context.GetAppAndOptionalStorePackageUpdatesAsync();
    Issue is that any task with IReadOnlyList / await take very long duration +10 seconds untill i get an answer so its far to long to use it at application start for updates checks...

    I could not figure out why its so long to just ping the "store" in order to know if game need an update, i am doing it wrong ? should i use another way than this "await" or could i speed up the process ?

    thanks
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    I don't know why it takes so long, but you could start the check before loading Unity and then wait for its completion after your game in loaded, so you could hide the cost.