GetDownloadSizeAsync returns 0 when called at runtime again

When I run my game, I can only get contents update for the first time. When I upload my new resources again, I can’t get contents update at runtime until I restart my game, GetDownloadSizeAsync always returns 0.
@davidla_unity said In a release in the coming weeks Unity have an API implemented that will allow the ability to update the content catalog at runtime. Is this API ready now? I’ve been looking for it for two days:(
the same question :
GetDownloadSizeAsync returns 0 when called at runtime again - Unity Forum

@unity_bill anyone can help me please.

@unity_bill @davidla_unity

I’ll flag with the team for some insight.

Thank you.

As with what David said in the linked forum post. The catalog is not updated and will be looking at the precached bundles still, for that catalog.

If you update the catalog, then that catalog should now have updated cache information for the updated content. Resulting in the bundle not being cached.
Documentation about updating catalogs can be found at at https://docs.unity3d.com/Packages/com.unity.addressables@1.19/manual/UpdateCatalogs.html

What I mean is that the first update in the game can be updated normally, but when I upload the content to the cloud again, I cannot update to any content. I must restart the game to update, which means I can only get one update while running.

What Unity version and Addressables version do you use?

1.19.4 The last version

Can you get multiple updates while the game is running? I can only update once.

Yes, it works for me with Addressables 1.18.13 and Unity 2019.4.20f1. Can you test if it works for you with 1.18.13 too? If it works, it’s perhaps a regression introduced in 1.19.4.

@Live2015 Just wanted to check back in with this thread, were you able to fix your issue and if so, was it fixed by downgrading? If you weren’t able to fix it without downgrading, is it possible that you could send a bug report with a project that reproduces your issue so we could look into it? It should definitely be possible to get multiple updates while the game is running, so if it still doesn’t work something is likely going wrong.