Updating the native version #133
Unanswered
stephen1977
asked this question in
Plugin
Replies: 1 comment
-
Hello how do you get the native version ? if it's with capacitor api, you will not get different version number since that the native and you can't update it, instead do a get Current form the plugin https://github.com/Cap-go/capacitor-updater#current |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
can this plugin update the native version. i..e the version and build number. ive been trying to get it to work with no luck
const version = await CapacitorUpdater.download({ url: updateUrl, version: newVersion});
alert(JSON.stringify(version));
await CapacitorUpdater.set( {id: version.id}); // sets the new version, and reloads the app
its does update the codebase but the version number remains the same. as you can see a new version is required as a param for the the download function and is also returned in the bundle. any help would be much appreciated. thanks
Beta Was this translation helpful? Give feedback.
All reactions