How to test privileged Firefox OS app before publishing in Marketplace?

时间:2015-07-28 16:12:56

标签: asp.net-web-api mozilla hybrid-mobile-app firefox-os

I am trying to develop a privileged packaged firefox os app. And from MDN I came to know that privilaged apps will be verified and published by the marketplace. And there are certain API s like "mobilenetwork" which cannot be used with "web" type packaged apps. These type of API s cannot be tested in Firefox OS simulator too as mobilenetwork is not available in simulator.

During the course of development I may need to test it several times in my Firefox OS device. So how can I test a privilaged app in my device without publishing it in the marketplace?

I am new to firefox OS. So If I am wrong somewhere please correct me.

2 个答案:

答案 0 :(得分:1)

只需在您的清单中设置特权类型并通过app-manager将其安装到您的手机(在Firefox浏览器中打开uri about:app-manager )。另见using the app-manager。我不熟悉新的web-ide,但您可能也可以使用它来安装特权应用程序。

如果有人想要在市场上发布特权应用,那么Firefox可能会在批准特权应用以进行公开发布之前对其进行测试。只有当您想要在市场上发布应用时才会出现这种情况,而不是在您的设备上进行测试时。

答案 1 :(得分:0)

特权应用程序可能仅通过Firefox Marketplace分发。 Source

特权应用是需要由受信任方(Firefox Marketplace到目前为止)签名的打包应用,其所有代码都应包含在应用包中。因此,您无法从特权应用程序加载外部脚本。

希望有所帮助。