Uploading APK and OBB file

Hi, after browsing through my android device, i noticed that when i’m updating my game (using play’s beta testing facility) it downloads the apk and obb as it should, but it doesn’t erase the older obb file.
That leads to space being taken up lot. What is the right way to upload to Play with obb?
I mean i just upload the small apk and when that is done, it gives the option for additional files with two slots. The main obb and the patch. Which one should i just for the obb that had the game? When i’m updating the game it just export from unity and get that same apk and obb pair.
Should i upload the game with APK+Main.obb and when i have an update put the obb in patch slot instead ?

No-one? :frowning:

Every time I make an update, I get a new apk and main obb file. I rename the obb file correctly, and then when I am uploading the new apk, I upload the new obb main file and use it.

You most likely will never use the “patch”. If you look at the Google Play OBB downloader code I assume you are using in your project, you can see the main and patch obb’s are completely different. Or do you even have code for that?

So far it was working fine on the devices i tested it, without the code.
I mean the devices downloaded the files each time from play.

You are really playing with fire though possibly. Some devices don’t download the OBB automatically and what if the internet connection drops while auto downloading the OBB with the APK? Actually, I’m not sure if it would actually show it as installed if it wasn’t able to download the APK and OBB together.

The code is really easy to integrate so in my opinion, I’d just add it to be safe. Then it will be easier to add code to remove old OBBs that were downloaded as well, so you aren’t wasting the users space.

I see. I thought the obb package was if you hosted the apk on your own server or something like that since Play downloaded things automatically.
I guess i only need to add it to my first scene that shows the intro/loads things up?

At least by default it’s all setup to download from the Play Store. So basically yeah, your first scene is always included in the APK so have it check to see if the OBB already exists on the device, if not, have it try and download it. If it’s not able to download or whatever, then take the appropriate action.

Ah k then. Thanks for your time. I was put off to using the downloader due to some comments in the asset store that made it look hard or weird to work with.

Let me know if you have any questions with it.