← Back to Page domain

Page.getAppManifest

Gets the processed manifest for this current document. This API always waits for the manifest to be loaded. If manifestId is provided, and it does not match the manifest of the current document, this API errors out. If there is not a loaded page, this API errors out immediately.

Domain: Page stable

Parameters

NameTypeDescription
manifestId (optional)string

Returns

NameTypeDescription
urlstringManifest location.
errorsarray
datastringManifest content.
parsedAppManifestParsedPropertiesParsed manifest properties. Deprecated, use manifest instead.
manifestWebAppManifest

Example Request

{
  "id": 1,
  "method": "Page.getAppManifest"
}

Example Response

{
  "id": 1,
  "result": {
    "url": "url-value",
    "errors": [],
    "data": "base64-encoded-data...",
    "parsed": "parsed-value",
    "manifest": "manifest-value"
  }
}

Usage in Node.js

const result = await send('Page.getAppManifest');
console.log(result);
// {"url": "url-value", "errors": [], "data": "base64-encoded-data...", "parsed": "parsed-value", "manifest": "manifest-value"}