-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a manifest option for the declaration the "version" of the web application #1036
Comments
FWIW, the MiniApp Manifest spec, which extends the present spec, has a |
We also included this in our proposal for a change log/version history: w3c/manifest-app-info#1 |
@songql do you have affiliation with the MiniApp Manifest spec? Is this an effort to upstream the existing version field? If so it would be great to hear examples of it being used in that context. |
Thank you for your response. |
Thank you for sharing your insights. |
I'm a member of the MiniApps working group, but haven't proposal for it yet. |
The existing versioning proposal in the MiniApp manifest responds mainly to the demand for distributing the apps in marketplaces or directories and for the user agents to manage the different versions of the same application (identified by The format is exactly as you, @songql, suggested:
The This proposal is based on some similar approaches to indicate the <manifest
android:versionCode=1
android:versionName="1.0.0">
</manifest> {
"versionName": "1.0",
"versionCode": 1,
} {
"app": {
"version": {
"code": 1,
"name": "1.0"
}
} So, this |
@espinr Thanks for your response. I'm glad doing something for web standardization. |
@alancutter FYI about this discussion |
Whether it is a Web Application or a PWA (Progressive Web Application), it is a type of Application. Generally, the difference from other operating systems and desktop applications is whether the installation or deployed on the server or the client. With the emergence of technologies such as HTML5 and WASM, and the development of frameworks such as NodeJS and Electron/NW.js, Web technologies are rapidly occupying the territory of client-side development. Additionally, both Google Play and Microsoft Store already support offline PWA installers.
Based on the above, as a type of Application, Web Application should also define version attributes in the develop standard just like applications of other operating systems.
We can refer to the version methods defined by other operating system applications to formulate the version identification of the Web Application:
And lots of people are asking questions about the PWA version online, and all kinds of weird solutions like:
Therefore, it is proposed to add a
version
attribute member object inmanifest
. The member object contains two attributes, namelycode
andname
, where:code
is an integer, which is incremented according to the update of the Web Application;name
is text, which can be set by the developer to any user-friendly string, such as1.0.0
.Specific examples are as follows:
The defined version attribute can provide the Web Application with access capabilities through Web API also, which can be used in more scenarios that developers needed, such as version display in web applications, offline PWA upgrade detection, etc.
Only by providing developers with more capabilities, Web Applications will flourish in the application ecosystem. Let’s move forward step by step!
The text was updated successfully, but these errors were encountered: