Is there a way to programmatically get the installed version of the app.
My app has 24 version and I need to know which version is currently installed so that I can help support the customer when they reach out to us.
I would like the version to be made available as part of the Product Event payload, in addition to the Marketplace Platform version which we already get, but is not of much use.
Also, having the current version available as part of the client APIs on the frontend will help in nudging the customer to update the app.
There are 2 APIs I’m looking for.
- client.getCurrentVersion(), which gives the currently installed version of the app on the customer’s account.
- client.getLastestVersion(), which gives the latest version of the app that is available in the Gallery.
For example,
client.getCurrentVersion() // 2
client.getLastestVersion() // 4
In this case, I would nudge the customer to update the app to the latest version.
There have been instances when I have provided security updates where the app just wouldn’t work if they did not upgrade to the latest version, but there was no way to communicate that to the customer.
Please consider adding this to the feature roadmap.