On Monday, May 27, 2013 1:58:07 AM UTC+2, Link wrote:
> I got stuck with the development of my web app for Firefox OS because I don't 
> know how I can test it... I use deviceStorage API to access sdcard, but 
> firefoxos simulator doesn't recognize any external sdcard, so I suppose I 
> cannot use the simulator, right?
> 
> 
> 
> I also have got an Unagi device (with the last firmware update), but 
> deviceStorage API requires privileged permissions and I don't know how to 
> test privileged apps on an actual device... If, inside the manifest, I set 
> "type": "privileged", my app works fine with the simulator (except for the 
> code that requires sdcard access), but if I push the app to the device, 
> nothing works! (Javascript disabled inside the app, just HTML works) Is there 
> a way to test packaged PRIVILEGED apps with a firefoxos device without 
> sending it to Firefox Marketplace? I heard that in older versions there was a 
> "Developer mode", but it seems it has been disabled in newer version...
> 
> 
> 
> Thank you!

Be aware that you need to comply with CSP limitations ("default-src *; 
script-src 'self'; object-src 'none'; style-src 'self' 'unsafe-inline'"), so 
inline javascript is not allowed. 

Anyway, the way I do it is that I clone Gaia, symlink my app into the apps/ 
directory and then `make install-gaia` to reflash Gaia. Now the app will be 
installed.
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to