Page.getAppIdReturns the unique (PWA) app id. Only returns values if the feature flag 'WebAppEnableManifestId' is enabled
| Name | Type | Description |
|---|---|---|
appId | string | App id, either from manifest's id attribute or computed from start_url |
recommendedId | string | Recommendation for manifest's id attribute to match current id computed from start_url |
{
"id": 1,
"method": "Page.getAppId"
}
{
"id": 1,
"result": {
"appId": "appId-value",
"recommendedId": "recommendedId-value"
}
}
const result = await send('Page.getAppId');
console.log(result);
// {"appId": "appId-value", "recommendedId": "recommendedId-value"}