Le 15/09/2013 16:01, Michael Hurley a écrit :
> I'm building a little chess-problem app for firefoxOS. 
> (https://github.com/buzzdecafe/kinghunt). I want to make it a packaged app so 
> you can always use it offline. 
>
> I am running into two problems. 
>
> First, installing:
>
> My zipfile passes validation here:
>
>     https://marketplace.firefox.com/developers/validator
>
> But when I try to install on the phone (from here: 
> buzzdecafe.github.io/kinghunt/) I get the error:
>
>     KingHunt download failed
>
> But in my homescreen, I have an icon labeled Kinghunt; I tap that and it 
> prompts:
>
>     Do you want to download KingHunt?
>
> I tap "Download" and ...
>
>     KingHunt download stopped.


We tried hard to output the real error on the log. So next time just
have a look to the console and you'll probably see the root cause :)


> I am new to this platform, and I am not seeing where I went wrong on this. 
> Any guidance is much appreciated.
>
>
> Second, the simulator is choking on something in this app:
>
> I can load and run the app from a web server using Firefox the *web browser* 
> on the desktop or on the ZTE Open or through the simulator. I can also 
> install the app on the simulator. The simulator reports:
>
>     KingHuntPackaged App
>     Last updated: just now
>     Open Location /home/mike/dev/kinghunt/manifest.webapp
>     Validation Result: OK 
>
> Then I can view the index page (#/load), and I can view the about page 
> (#/about), but when I try to open the board page (#/board), it bombs. The 
> error:
>
>     The address wan't understood
>     Firefox doesn't know how to open this address, because the protocol 
>     (unsafe) isn't associated with any program.
>
> This looks to my untrained eye like a security violation; but I have no idea 
> what constraint I have violated or how to work around it. The URL I am trying 
> to access is something like: 
>
>     #/board/4
>
> Note that #/ and #/about and #/load all load just fine.
>
> Sorry for the long post, I'm a bit stuck. I appreciate any support. Thanks

See
http://stackoverflow.com/questions/15606751/angular-changes-urls-to-unsafe-in-extension-page,
I think the problem is the same for firefox OS apps.

The URLs for packaged apps start with app:// so I think you need to tell
angular that this scheme is safe.

If this works for you, would you please add a section in
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Apps/Tips_and_techniques
? Thanks !

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to