If I like to display our company's application version number in the app, what is the best way to go about it?
In Java, people can have a Version class which can read an entry(implementation-version) in manifest file, or through some other means. In ST20, we only have a concept of cache manifest. Does ST have any API to deal with that? What would be the suggested way to go about it?
I don't know of a way to do this automatically from the packager.json or app.json (there is no version config in app.json). I would think you would have to do this in JavaScript to set the version somewhere where you can get it easily.
I wish there was some built-in support for this, as it's very helpful to have something to tell if the user isn't getting the current version due to ST or browser problems.
I wish there was some built-in support for this, as it's very helpful to have something to tell if the user isn't getting the current version due to ST or browser problems.
It wouldn't be hard to include a version variable in your code and display/access it.
But, I understand why you think it should be included, or at least mentioned somewhere.
No, it's not hard. You just have to keep track of it and update it by hand each time. There's already a great deal of automation involved in the build process. I'd settle for just being able to easily work with the same version that goes in the manifest.