-
Notifications
You must be signed in to change notification settings - Fork 28.5k
[Proposal]Support for Play Asset Delivery to by pass size limit when uploading app to Playstore #100855
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @copypasteearth, Thanks for filing the issue. Please take a look at the Android docs and see if it helps. |
@maheshmnj so is there a way to use deferred components as an asset pack? |
@copypasteearth Unfortunately flutter currently doesn't support Play Asset Delivery. Deferred components is based on Play feature delivery. Labeling this issue as a proposal to Add support for Play Asset Delivery to by pass the size restriction limit when deploying to playstore. |
However, you might want to checkout third party plugins from pub https://pub.dev/packages/flutter_play_asset to unblock yourself. |
cc: @GaryQian |
Since we don't control the android/play store side limitations, have you considered breaking up the assets into more components. If you break up into 3 deferred components, then each is ~100mb well under the limit. Since you are so close to the limit, different ways of counting mb (eg, 1000 vs 1024) may be putting you over somewhere |
Yes I already tried to break it up into 4 components |
Could your issue be related to #96046 ? If so, you can try using an older version of Flutter as this is a more recent regression. |
@GaryQian I tried flutter 2.2.3 and 2.2.5 I think, and the latest, I wound up using the play_asset_delivery package on pub.dev I noticed a difference was that I put "install-time" when using it in the build.gradle of the asset pack would that have made it work with deferred components? |
Using install-time would make the assets all download at initial install, so you would loose the benefit of dynamically downloading as needed, but it would indeed work in getting around the size limit. |
Any update on this? This is pretty critical, especially for offline-first and other data-intensive apps. It would be ideal to have Play Asset Delivery support in the platform. |
Seems like there is this library now which helps in asset delivery. But it would be good if we get official support as all other platforms allow upto 2GB for app sizes. But doesn't seem like there is a straight forward way. |
Any update on this? |
any update? need a solution |
any update? need a solution |
Would love this feature |
Any updates? |
Using the Flutter and pigeon library, I have created a sample app that can use the Play Asset Delivery (Android) and On-Demand Resources (iOS) features. https://github.com/yamashita-room-335/online_assets I have included a fair amount of comments as readme, so you may be able to implement these features in your own apps by copying any implementation you like! |
I just found a easy way, how to integrate This only works with With this you can deliver 4GB app bundles to Google Play (like you already can with IPAs on Apple App Store). |
Steps to Reproduce
I have 300MB bundle and I made a Deferred Component to hold 150MB worth of assets mp3 files. I uploaded it to google play and it keeps telling me One or more of the auto-generated multi-APKs exceeds the maximum allowed size of 150 MB.
in my main.dart I have a FutureBuilder that shows a loading indicator while i call the future

[DeferredComponent.installDeferredComponent(componentName: "meditations")]
I tried to follow the steps exactly and I just cannot get it to work. I will provide whatever details you need, please this is imperative, I have to have this release by April 1st.
Thank you for your time.
Am I going about this wrong, any help to get this done would be great
The text was updated successfully, but these errors were encountered: