Comments (8)
The compression rate depends entirely on the structure of the app. For other apps, the savings can be substantial.
But I get the idea. I'm sure many others will see it that way as well.
I'll add that to the backlog.
But it's low priority for now, there are other important issues I need to solve at the moment.
from cordova-plugin-apkupdater.
The basic idea is actually just that the APK file is offered for download in a compressed form.
You can just generate one chunk, that would simply be the compressed APK in an archive. Multiple chunks are really only interesting if you want to implement background download.
You can also easily offer multiple versions for download. Each version simply needs its own manifest file.
The app just needs to know which versions exist and where the appropriate update is located.
The plugin itself does not decide which version is newer than the other. So you don't have to install the latest version at all.
You can even install third party apps this way. Just note that version downgrades are not possible.
Your use case would be covered by this, or am I misunderstanding?
Or is it simply that the additional compression step is annoying?
from cordova-plugin-apkupdater.
I tested it with just one chunk and it is working very well.
Or is it simply that the additional compression step is annoying?
yes.
The APK file format is already pretty compressed. In my example the APK is 14 MB and the ZIP with one chunk ~13.5 MB.
When releasing a new version of the App, I have to
- Upload the APK. This is e.g. needed for new users who never downloaded the App before (and of course want to start with the newest version, why bother downloading a outdated verison?)
- Upload the chunked ZIP. For users who already have an older version installed and are getting the update from within the app.
- Upload the manifest.json
Step 2 seems rather unnecessary in my opinion.
Nevertheless this plugin is working great, thanks for your efforts!
from cordova-plugin-apkupdater.
I've been thinking about this. You are right. I overengineered the plugin way too much.
This also made it difficult to maintain.
I have simplified the plugin and removed all the manifest logic.
I still have to write a proper documentation, but on the refactoring
-branch you can already test the version.
You can now directly download and install the APK. Zipped files are also supported.
v2.0.0
:
https://github.com/kolbasa/cordova-plugin-apkupdater/tree/refactoring
Demo-Apk:
https://github.com/kolbasa/cordova-plugin-apkupdater-demo
from cordova-plugin-apkupdater.
hi, thanks for the update.
I will definitely try this once I find some time for it.
from cordova-plugin-apkupdater.
I think I can close this now. Let me know if you have problems with the new version.
from cordova-plugin-apkupdater.
just a quick follow up: we migrated to the newest plugin version and everything is looking good so far.
thank you!
from cordova-plugin-apkupdater.
Glad to hear that. If there are any problems or suggestions for improvement, just write. 👍
from cordova-plugin-apkupdater.
Related Issues (20)
- failed to parse package HOT 6
- Kiosk Mode + plugin apkUpdater V2.0.2 HOT 9
- Getting error after downloading apk - Download directory is empty HOT 5
- isDeviceRooted not working correctly HOT 5
- Cannot update versioning HOT 4
- Authorization headers always sent HOT 3
- XAPK install support? HOT 8
- Issue with Progress percentage ,it is always returns 0 HOT 2
- Set device owner for Android TV HOT 3
- support for ionic 5 HOT 1
- is it possible to update an application without user intervention/without using root? HOT 38
- Downloading fails with "No valid update found in download directory" HOT 2
- Cannot read properties of undefined (reading 'getInstalledVersion') HOT 7
- Plugin not working with ionic's capacitor HOT 6
- Got an "Invalid page file" error with capacitor project HOT 4
- Couldn't find meta-data for provider with authority org.app.app.apkupdater.provider HOT 12
- Great, thank you for your work. I solved it
- Cordova error HOT 3
- Trust anchor for certification path not found HOT 4
- Allow custom headers or at least Bearer authentication HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-apkupdater.