首页 > 解决方案 > 边缘扩展:扩展清单的验证失败

问题描述

在审查了我的 Edge 扩展后,我获得了将其提交到商店的批准。但是,提交失败并出现此错误。

'background.page' 指定的文件不存在:Extension\PopupApplication\app\index.html?background=1

扩展清单验证失败:Extension\manifest.json

中的相关部分manifest.json如下所示:

"background": {
    "page": "PopupApplication/app/index.html?background=1",
    "persistent": true
}

似乎验证不允许background.page属性中的查询参数。但我的逻辑需要参数。是否有任何解决方法或者我必须更改我的应用程序逻辑?

Edge 扩展在本地运行良好。它也适用于 Chrome 和 Firefox。我已经使用Microsoft edge Extension Toolkit来移植 Chrome 扩展。

编辑:简化的文件夹结构如下所示

+ Assets
+ Extension
|----+ PopupApplication
     |----+ app
     |--------+ index.html
|----+ manifest.json

标签: microsoft-edgemicrosoft-edge-extension

解决方案


解决方法是更改​​我们的代码以成功提交边缘扩展。提交不允许background.page属性中的查询参数。微软支持部门证实了这一点。


推荐阅读