Skip to content Skip to sidebar Skip to footer

Do Android Apps Still Need To Contain An Expansion Files Downloader?

My question is about the need apps to be able to download expansion files when the app is larger than 50MB and has to make use of them. According to the Android developer help, ap

Solution 1:

It's not just old devices that fail to download, it's any devices - for example if the network dies during the download, or if someone manages to delete the expansion files after they were downloaded.

The docs state:

Download process

Most of the time, Google Play downloads and saves your expansion files at the same time it downloads the APK to the device. However, in some cases Google Play cannot download the expansion files or the user might have deleted previously downloaded expansion files. To handle these situations, your app must be able to download the files itself when the main activity starts, using a URL provided by Google Play.

Thus if you use expansion files at all, you need to handle the case where the files are not currently downloaded.

Solution 2:

No, you don't need a downloader library.

All you need to do is upload your OBB files (the main OBB file or the main and the expansion files) when you upload your APK in the Google Console website.

So when the user downloads your app, the OBB is part of the APK and gets downloaded and installed in the OBB folder in the device.

Your app file size increases if you don't delete the OBB file. You may want to use it as is, or you may want to extract files from it, and delete it later. But you control the file yourself, and you don't need a file downloader library.

The problem happens with some devices (I can't tell you which ones, but there are some maybe with older Android versions like 5.0) that don't give the user permission to that OBB folder where the obb file is downloaded and copied to, so your app doesn't find that file. There are workarounds around that, such as restarting the app, I don't remember as of now.

I decided to stop using the obb files because some users were complaining about the app size, and started using Dropbox instead to download the files my app needs, after it gets installed. Dropbox is very simple to use, and you can download the files via an url. I haven't had any complains about it since.

Post a Comment for "Do Android Apps Still Need To Contain An Expansion Files Downloader?"