KaiOS:无法从打包的应用程序内部安装托管的应用程序

时间:2020-05-28 15:35:07

标签: javascript kaios

我正在尝试从打包的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": [
  "*"
],

0 个答案:

没有答案