Google chrome extension chrome.storage.managed没有从谷歌管理员处读取chrome操作系统设备的自定义信息亭上传的配置文件?
我正在为数字看板应用程序开发一个“单应用Chrome kiosk”。我已经拥有Chrome设备管理许可证,并希望为每个Chrome操作系统远程设置用户名和密码(通过配置文本文件从Google Admin),以相应地显示不同的内容 从google管理员上传配置文件后,chrome.storage.managed.get('authentication')返回的值为空 我已经设置了manifest.json和schema.json,并从googleadmin上传了配置文件 在manifest.json中Google chrome extension chrome.storage.managed没有从谷歌管理员处读取chrome操作系统设备的自定义信息亭上传的配置文件?,google-chrome-extension,google-chrome-app,kiosk,kiosk-mode,Google Chrome Extension,Google Chrome App,Kiosk,Kiosk Mode,我正在为数字看板应用程序开发一个“单应用Chrome kiosk”。我已经拥有Chrome设备管理许可证,并希望为每个Chrome操作系统远程设置用户名和密码(通过配置文本文件从Google Admin),以相应地显示不同的内容 从google管理员上传配置文件后,chrome.storage.managed.get('authentication')返回的值为空 我已经设置了manifest.json和schema.json,并从googleadmin上传了配置文件 在manifest.js
"storage": {
"managed_schema": "schema.json"
}
schema.json
{
"type": "object",
"properties": {
"authentication": {
"type": "object",
"properties": {
"username": {
"type": "string"
},
"password": {
"type": "string"
}
}
}
}
}
上传的配置文件如下
{
"authentication": {
"Value": {
"username": {
"Value": "testScreen"
},
"password": {
"Value": "test1234$"
}
}
}
}
我的代码是
chrome.storage.managed.get('authentication', function (data) {
const credentials = {
username: data.username,
password: data.password
};
});
我希望得到的响应数据是一个对象
数据={用户名:'testScreen',密码:'test123$'}
我实际得到的是data={};空对象