I have reached the point where my app can no longer fit into 100MB. I have no choice but to figure out how to use .OBB expansion files on Google Play. However I am having trouble locating a recent tutorial.
I found the Unity Help File
However when I read the comments on the store for this plugin it seems obsolete and has issues with newer versions of Unity.
On the other hand I found some posts with people claiming that Google Play now handles the .OBB download automatically and you no longer need this plugin. However that approach seems to have some permission related issues as well a device related issues.
Does anyone have recent experience with .OBB files for Google Play and can they please teach me this magic. I really donât want to screw this up for my users.
I am having the same problem and I urgently need to publish the application!
Already tried:
âInstall Locationâ = Prefer External;
âWrite Permissionâ = External (SDCard);
Some solutions said to put âandroid.permission.READ_EXTERNAL_STORAGEâ directly in AndroidManifest.xml, but it was already activated (probably due to the previous option);
Put the plugin âUnityOBBDownloaderâ, which in theory would be the best option, but without success.
So this is what I found so far using some trial and error.
Google will deploy the .OBB file automatically once you upload it. However their documentation states that sometimes if the OBB deployment fails your app still needs to download the OBB files. So it seems that there still is a need for that plugin.
So I am now working on testing the Unity Plugin but I am worried that my testing devices arsenal is not going to provide good enough test coverage.
It would be awesome to have someone from Unity confirm that this plugin is still supported and has been tested since Unity 4.
I build a new test version with an OBB file and the Unity Plugin from the documentation.
First the new version of my app now requires access to Call ID and Call History, definitely not good.
The app runs fine with the plugin and a âLoading Sceneâ that checks for the OBB and downloads it. The OBB was already there so really there was nothing for the plugin to do.
As a final test I deleted the OBB file from the phone to see if I can download it. Unfortunately when I did that the app crashed. I can see the download progress screen at 0% then I get the âUnfortunately, AppName has Stoppedâ
After some soul searching I decided that it is much safer to simply do a deep dive on my gameâs assets and shrink the APK down to under 100MB. Its probably better for performance anyways to have smaller assets and I was not ready to take such a huge risk on this OBB plugin.
However this is a short term solution, soon I will want to ad more content to my game and I will face the same problem so I would appreciate any help, code, links to tutorials or even a simple confirmation that it still works in 2018.
Avoiding using an OBB is a great solution, if you can make it. Try utilizing asset bundles for delivering additional assets and/or updates.
As an alternative, try using the new Android App Bundles https://developer.android.com/platform/technology/app-bundle/ (should be available in latest Unity 2017.4 too) - itâs a more optimized delivery mechanism, with potential to support more than 100Mb limit.
I have OBB loader in my older game and everything works. But now I need it for another game and OBB loader crashes with this screen: Looking for recources to download.
I waited a day to see if the OBB file just was not ready on Googleâs end, but it just keeps crashing. I have done everything just like with the other app that works.
You wrote that âFirst the new version of my app now requires access to Call ID and Call History, definitely not good.â
My other game that uses the same OBB loader and actually works, gave me very serious warning. If I undersood correctly Google Play will remove all apps that access Call ID and Call History in March 9th!
âWeâll be removing apps from the Google Play Store that ask for SMS or Call Log permission and have not submitted a Permissions Declaration Form.â
So I quess all the apps that use OBB downloader will be removed soon from Google Play if the developer has not noticed this Permissions Declaration Form. I noticed it myself by accident, no notification from Google. Just this warning that I saw once on the console.
It has happened but it is in an early roll out phase where you need to be whitelisted in order to gain approval for 500mb. You have to talk to your google play contact and they might be able to apply on your behalf to get you whitelisted.
Improved support for large apps: you can now upload large app bundles with installed APK sizes of up to 500MB without needing to use expansion files. This feature is in early access and we will roll it out to all developers in the future.