I need to know if the On-Demand content of my game is downloaded without having an internet connection. I’ve tested the Play Asset Delivery API provided by the official Unity project, and if there’s no internet connection, the AndroidAssetPacks.GetAssetPackStateAsync
method returns an unknown status even if the content was downloaded in a previous session. Attempting to load an Asset included in the On-Demand Asset Packs will result in an error if there’s no internet connection. The procedure is as follows:
- Download the game from Google Play
- With an internet connection, download the On-Demand content
- Load the assets from the On-Demand content without issue
- Kill the game
- Disconnect the device from the internet
- Open the game and try to load the assets from the On-Demand content; in this case, it gives an error because it can’t find the assets on disk. This forces the user to stay connected to the internet every time they want to play the game if any asset from the On-Demand content is used.
The question is, is there any way to load the assets from the On-Demand content without an internet connection if that content was downloaded in a previous session?
Thanks in advance