Closed Bug 974277 Opened 12 years ago Closed 12 years ago

INVALID_MANIFEST on valid manifest

Categories

(Core Graveyard :: DOM: Apps, defect)

Other
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: ozten, Unassigned)

Details

For the following devices, I'm unable to install my app * Unagi running 1.3 * Geeksphone running 1.2 * FxOS Simulators (1.2 or 1.3) The install page used is http://ozten.com/random/Roguelike/install.html On the following tools, I have a valid manifest URL: * about:app-manager > Apps > Add Hosted App * Marketplace Manifest Validator - https://marketplace.firefox.com/developers/validator The value used is http://ozten.com/random/Roguelike/manifest.webapp $ curl -v http://ozten.com/random/Roguelike/manifest.webapp < HTTP/1.1 200 OK < Date: Wed, 19 Feb 2014 06:49:20 GMT * Server Apache is not blacklisted < Server: Apache < Last-Modified: Wed, 19 Feb 2014 06:44:16 GMT < ETag: "200-4f2bcb7aebfb9" < Accept-Ranges: bytes < Content-Length: 512 < Content-Type: application/x-web-app-manifest+json < { "name": "oz Roguelike", "description": "A Game", "developer": { "name": "Austin King", "url": "http://ozten.com" }, "launch_path": "/random/Roguelike/", "icons": { "256": "/random/Roguelike/img/icon/Roguelike256.png", "128": "/random/Roguelike/img/icon/Roguelike128.png", "60": "/random/Roguelike/img/icon/Roguelike60.png", "30": "/random/Roguelike/img/icon/Roguelike30.png" }, "orientation": ["landscape"], "fullscreen": "true" } Sorry if I'm missing something obvious.
OS: Mac OS X → Gonk (Firefox OS)
Hardware: x86 → Other
The test page here is incorrect - you are calling navigator.mozApps.installPackage with a webapp manifest, not a mini-manifest.
If I were to guess what's causing the error from the manifest, then I think it's this line below failing: "orientation": ["landscape"], Try using "orientation": "landscape" instead here.
I'll try to create a mini-manifest. Update: Using https://marketplace.firefox.com/developers/test/receipts/ the manifest does install on: * Unagi with 1.3 * FxOS Simulator 1.2 I put in http://ozten.com/random/Roguelike/manifest.webapp and click 'install'. This causes the app to be installed, unlike my install.html page.
Is this more of a documentation bug? I was following https://developer.mozilla.org/en-US/docs/Web/API/Apps.install which says window.navigator.mozApps.install(url, [receipts]); url - A string URL containing the location of the manifest to be installed. I can only find the term mini-manifest in relation to packaged apps. This is a hosted app. Thanks again!
Okay - sounds like we've cleared up the confusion. Feel free to update the docs if you think they aren't clear - install is meant for hosted apps, installPackage is meant for packaged apps.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.