我为FIrefox OS开发了一个简单的应用程序,我想在Firefox OS Simulator上进行总结。当我加载我的应用程序时,我得到验证:确定但我的应用程序未安装在模拟器中。我之前看过同样的问题,但另一个人的问题是他的清单文件名称不正确,但我的名字是manifest.webapp。这是我的代码:
manifest.webapp
{
"name": "Ejemplo Computo Movil",
"description": "Your new awesome Open Web App",
"launch_path": "/index.html",
"icons": {
"16": "/app-icons/icon-16.png",
"48": "/app-icons/icon-48.png",
"128": "/app-icons/icon-128.png"
},
"developer": {
"name": "Eugenio Kuri Sainz",
"url": "http://yourawesomeapp.com"
},
"permissions": {
"desktop-notification": {
"description": "Necesario para la creación de las notificaciones del sistema."
}
},
"locales": {
"es": {
"description": "Ejemplo de aplicación Open Web",
"developer": {
"url": "http://yourawesomeapp.com"
}
},
"it": {
"description": "Il vostro nuovo fantastico Open Web App",
"developer": {
"url": "http://yourawesomeapp.com"
}
}
},
"default_locale": "en"
}
的index.html
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Ejemplo de aplicación para IOS</title>
<!--[if le IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script src="scripts/respond.js"></script>
<![endif]-->
<!-- The following two elements pull in the styles for the default template functionality -->
<link href="styles/install-button.css" rel="stylesheet" type="text/css">
<link href="styles/normalize.css" rel="stylesheet" type="text/css">
<!-- Below is your custom application stylesheet -->
<link href="styles/app.css" rel="stylesheet" type="text/css">
</head>
<body>
<p>Esta es una aplicación para IOS</p>
<button id="install-btn">Install app</button>
<!-- The following element pulls in the script for the default template functionality -->
<script src="scripts/install.js"></script>
<!-- Below is your custom application script -->
<script src="scripts/app.js"></script>
</body>
</html>
索引和清单位于同一文件夹中。
非常感谢你的帮助。
答案 0 :(得分:0)
你的manifest.webapp没问题。请尝试重新安装模拟器。并记得下载最新的稳定模拟器