J'essaie actuellement de configurer un service d'arrière-plan pour mon application afin que l'application soit ouverte lorsque le téléphone a été allumé. Si je ne me trompe pas si le manifeste du webapp contient la "background_page" alors le service d'arrière-plan devrait être exécuté automatiquement sans que l'application soit ouverte. Actuellement, le service d'arrière-plan n'est pas en cours d'exécution.Firefox OS: Service d'arrière-plan, l'option manifeste "background_page" ne fonctionne pas
manifeste
{
"version": "1.0",
"name": "Hello World",
"description": "Hello World",
"orientation":"portrait-primary",
"icons": {
"16": "/icons/icon_16.png",
"32": "/icons/icon_32.png",
"48": "/icons/icon_48.png",
"128": "/icons/icon_128.png"
},
"permissions":{
"background":{},
"backgroundservice":{},
"desktop-notification":{},
"webapps-manage":{}
},
"launch_path": "/index.html",
"background_page":"/background.html",
"developer": {
"name": "Charlie Hudson"
},
"default_locale": "en"
}
fond
<!DOCTYPE html>
<html>
<script>
navigator.mozApps.mgtm.getSelf().launch();
</script>
</html>