I heard there’s:
- On-Demand Sources (iOS-Particular)
- Cut up APKs (Android-Particular)
Which permit to obtain content material after the preliminary app obtain, to scale back the preliminary bundle dimension. I’ve 1000 HQ photographs inside my Ionic Capacitor cell app, the bundle dimension would explode. How can I host them on the respective app & play retailer and have the app obtain the assets aftwards?
I believe the 2 talked about strategies above might try this. I believe they’re free to make use of as a lot as one needs, which is why I favor them over internet hosting my very own backend, since internet hosting 1000 HQ photographs to a number of customers might make internet hosting the backend very costly I believe, since I believe the app might attain greater than 100,000 customers sooner or later. Even when caching the photographs after a obtain, I believe the one obtain alone might turn into very costly with many customers.
Is there a plugin for capacitor for these two? Afaik the 2 listed providers are fairly comparable, so a plugin might possible goal each in an summary platform-agnostic means.
If such a plugin doesn’t exist:
what are another methods I can use these providers in my ionic capacitor app? Can I obtain them from inside the WebView possibly? Or is there some workaround that I can use?
I’d additionally think about writing my very own plugin, however it’s onerous for me to estimate how a lot work this is able to be, particularly to make the interface as summary as potential to supply a fairly generic interface for each platforms. Perhaps somebody with expertise might inform how onerous of a job that will be.
Sources:
https://developer.android.com/construct/configure-apk-splits