我正在尝试从打包的KaiOS应用程序内部安装托管的KaiOS应用程序。
错误:
error: DOMError
message: ""
name: "BACKGROUND_APP"
代码:
var manifestLocation = 'http://localhost:3000/manifest.webapp'; // your domain here
console.log(manifestLocation);
var installRequest = navigator.mozApps.install(manifestLocation);
console.log(installRequest);
installRequest.onsuccess = function (data) {
console.log(data);
alert('App installed successfully!');
};
installRequest.onerror = function (e) {
console.log(e);
// App couldn't be installed!
alert('Install error!');
};
父母在清单中有
"type": "certified",
"installs_allowed_from": [
"*"
],