Policonickolu / MetroParis

A Paris subway map with pathfinder (line 1 to 14).
http://heidyby.free.fr/projects/metro-paris/
MIT License
0 stars 2 forks source link

Error when installing on a Firefox OS device #12

Open Desiderius77 opened 10 years ago

Desiderius77 commented 10 years ago

I have tried to install your application on my Geeksphoen Revolution running Firefox OS 1.3 via metro the application-manager.

I gave to the application-manager the URL of your manifest.app and it answers with an error :

Le manifeste de l'application web « SyntaxError: JSON.parse: unexpected character » n'est pas un fichier JSON valide : https://github.com/Policonickolu/MetroParis/blob/master/manifest.webapp

Policonickolu commented 10 years ago

There was no developers names. It should work now.

Desiderius77 commented 10 years ago

Unfortunally no !

Same message on the App Manager :

Le manifeste de l'application web « SyntaxError: JSON.parse: unexpected character » n'est pas un fichier JSON valide : https://github.com/Policonickolu/MetroParis/blob/master/manifest.webap

Policonickolu commented 10 years ago

Ok, ok. When we download the file from https://github.com/Policonickolu/MetroParis/blob/master/manifest.webapp, we get the github html code. So it's not a valid JSON file.

We can get the raw manifest.webapp on https://raw.githubusercontent.com/Policonickolu/MetroParis/master/manifest.webapp but the app manager cannot get the others files because it search the index.html on https://raw.githubusercontent.com/index.html instead of https://raw.githubusercontent.com/Policonickolu/MetroParis/master/index.html.

If an application is hosted, the manifest.webapp needs to specify the complete url as launchpath. << "launch_path": "https://raw.githubusercontent.com/Policonickolu/MetroParis/master/index.html" >> instead of << "launch_path": "/index.html" >>

You should download the .zip and add to the app manager as a packaged application.