-
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 5 replies
-
The plugin should work with all Ionic versions. I myself still work with Ionic v1. In your case, you probably need both plugins:
If you update cordova from 9 to 11, then you don't need
This is normal. This has no effect on the plugin. You can easily add a new platform with:
This is done on purpose. The plugin itself does not provide a version comparison option. Feel free to write if there are more questions. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
More Updates... Build APK succeeds but produces a app-release.aab ?? I tried installing this .aab on this Android 11 box but it does not like it |
Beta Was this translation helpful? Give feedback.
-
You are on the right track. It's a pain, but it's worth keeping To generate an apk, you need to adjust your command a bit.
Complete example:
You can safely ignore all these warnings. These are local dev libraries on your computer. They don't lead to security problems in your app itself.
That's why it says
Yes, the plugin can also download an .apk file directly. You can write your own solution as it suits you best. Maybe you have a remote api that can tell if there is a new version. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Sorry, could not reply for a while. When installing a plugin, the best way is actually to test the code first via Chrome DevTools.
All functions of the plugin should be displayed now. If they are not shown, then the plugin was not installed correctly. Commands from the video above. await ApkUpdater.download('https://raw.githubusercontent.com/kolbasa/cordova-plugin-apkupdater-demo/master/Demo.apk', {onDownloadProgress: console.log});
await ApkUpdater.install(); Alternatively, as a classic Promise notation: ApkUpdater.download('https://raw.githubusercontent.com/kolbasa/cordova-plugin-apkupdater-demo/master/Demo.apk', {onDownloadProgress: console.log}).then(ApkUpdater.install) Alternatively with callbacks. ApkUpdater.download('https://raw.githubusercontent.com/kolbasa/cordova-plugin-apkupdater-demo/master/Demo.apk', {onDownloadProgress: console.log}, ApkUpdater.install)
The ApkUpdater-module is simply the default export and therefore can be imported without {} braces.. The plugin can be accessed in the global window object. You can ignore my Typescript api and go directly via |
Beta Was this translation helpful? Give feedback.
-
Finally Success!!! Thank you for pointing out all my mistakes, I was not paying attention and made the wrong conclusion that .download() was taken the json info as input, that's the reason I had asked earlier, But it's totally my mistake I should have read and followed more carefully your provided example. I get the following popup on the device and I think that outside of ApkUpdater control, but something I would to dig around the device if it is possible to make the update totally silent (without user interventions). Thanks for showing me I needed an await at the console prompt I am certainly poor at what can be done at the dev console (I am from the era of TurboPascal, then brainwashed with all the Microsoft garbage of C++, C# and a thousand never-ending frameworks). I had to drop almost all of that in order to get on the web/android with Node.js / Ionic / Angular / Cordova Perhaps, you may be German?, about 50 years ago I visited Würzburg, I was 10 then, my brother was working there for Hoechst, Beautiful country. May I ask what tools you use for capturing screen recording and turning them into animated .gifs? Thanks for all the assistance and guidance.
|
Beta Was this translation helpful? Give feedback.
The plugin should work with all Ionic versions. I myself still work with Ionic v1.
In your case, you probably need both plugins:
If you update cordova from 9 to 11, then you don't need
cordova-androidx-build
anymore. I'll have to update my readme on this.This is normal. This has no effect on the plugin. You can easily add a new platform with: