google / play-unity-plugins

The Google Play Plugins for Unity provide C# APIs for accessing various Play services
Other
441 stars 115 forks source link

Asset Delivery : Bundles can't restart/continue downloading after interrupting it in notification bar #233

Open GrimSparrow opened 11 months ago

GrimSparrow commented 11 months ago

Hello! In our game we're using Play Asset Delivery plugin for unity and all required libraries. Plugin version is 1.7.0 and Unity version is 2021.3.27f1. In our delivery system we're using Install time and on Demand modes. So, after downloading application from google play we launch the game and our code send request to download on demand bundles. There we have few cases, when issue happend:

Case 1 1) In notification bar we have several downloading files 2) Disable wi-fi - downloading stopped, no files in notification bar 3) Enable wi-fi - files in notification bar appear again. but downloading is stucked

Restarting the game does not help - frozen downloads continue to hang in the notification bar

Case 2 1) In notification bar we have several downloading files 2) Manually remove downloading file from notification bar 3) Downloading is stucked and it seems that bundle status not changed to Cancelled. Its just disappear from notification bar without any callback

Restarting the game does not help - frozen downloads continue to hang in the notification bar

We were thinking to update play asset delivery to newer version, but according to https://developers.google.com/unity/packages?hl=ru#google_play it requires Unity 2023.1.0 beta, which we can't use at this moment because of many reasons. It's will be good to port newer version of PAD to be compatible with older stable versions of Unity.

I kindly ask you to sort out the problem and help, this problem brings great losses to our project and generates a bad feeling from the gameplay for our big audience. It also leads to the loss of new players in our game.

mtemnikov commented 11 months ago

We have the same problems(( the best thing we can do is to implement our own cdn system(

Here there is nobody who will help you as well as unity crap. Such a critical functionality is not working and very buggy( well done to all(

mtemnikov commented 11 months ago

Have you tried to download bundles one by one creating a queue? I am thinking it might help

jennhernes commented 11 months ago

I don't know if the update will help but you could try updating to 1.8.0 or 1.8.1. Those support Unity 2021

GrimSparrow commented 10 months ago

Have you tried to download bundles one by one creating a queue? I am thinking it might help

As i know it doesn't help(

mtemnikov commented 10 months ago

Any progress on this? I have tried to use last lts 2021.3.34 with updated libs but it didn't work:(

Btw, how can we force google team to investigate this issue?(

lesderid commented 10 months ago

I'm afraid this is a Google bug that isn't specific to Unity. There is an issue tracking it, but it's not currently public. They are working on a fix though.

It's probably not of much help, and I don't know if it works for Unity, but:

So far the only workaround that I've found is detecting whether the download progress has stalled (i.e. no change in n seconds), prompting the user if they want to cancel/retry, and then calling AssetPackManager#cancel, followed by another AssetPackManager#fetch. This is not ideal for UX however.

mtemnikov commented 10 months ago

Hello again. I tried to cancel and retry downloading bundles however it didn't help. Pack are stucked in endless loop of unknown status with internal error and only cleaning cache of play store app might help. I also tried to remove packs by remove method and it also didn't help. Next thing i want to try is to remove packs manually by deleting containing folder but i have doubts 🥲

Maybe you have more ideas to try because this issue is ruining our game: lots of players can't finish downloading and there put very low rate in store. And it is not our fault ☹️

lesderid commented 8 months ago

I just heard from Google that this should be fixed in a recent Play Store release!

GrimSparrow commented 8 months ago

I just heard from Google that this should be fixed in a recent Play Store release!

Can you, please, provide source of this information? If it's true - its good news!

lesderid commented 8 months ago

I just heard from Google that this should be fixed in a recent Play Store release!

Can you, please, provide source of this information? If it's true - its good news!

I'm afraid that I was notified through a comment on an issue on Google's issue tracker that is not publicly visible.

GrimSparrow commented 8 months ago

I just heard from Google that this should be fixed in a recent Play Store release!

Can you, please, provide source of this information? If it's true - its good news!

I'm afraid that I was notified through a comment on an issue on Google's issue tracker that is not publicly visible.

I understand, thanks anyway