← Back to Page domain

Page.getAppId

Returns the unique (PWA) app id. Only returns values if the feature flag 'WebAppEnableManifestId' is enabled

Domain: Page experimental

Returns

NameTypeDescription
appIdstringApp id, either from manifest's id attribute or computed from start_url
recommendedIdstringRecommendation for manifest's id attribute to match current id computed from start_url

Example Request

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

Example Response

{
  "id": 1,
  "result": {
    "appId": "appId-value",
    "recommendedId": "recommendedId-value"
  }
}

Usage in Node.js

const result = await send('Page.getAppId');
console.log(result);
// {"appId": "appId-value", "recommendedId": "recommendedId-value"}