id

Type String

The id member is a string that represents the identity of the web application — the unique identifier for the web application. If the web application ID does not match an existing ID, the application will be treated as a unique identity even if it is from the same URL.

A valid id needs to be same-origin with start_url. If the id is a relative URL, it is resolved using the origin of start_url. The fragment is always ignored.

If the id is unspecified or invalid in any way (such as not a string, not a valid URL, not same-origin with start_url), the start_url is used.

Note: The id member can be used to uniquely identify applications. The id member is processed like a start_url but can be out of scope because it does not point to a resource that can be navigated to.

Examples

json
"id": "?homescreen=1"

Specifications

Specification
Web Application Manifest
# id-member

Browser compatibility

BCD tables only load in the browser