Firefox OS认证的应用 [英] Firefox OS Certified apps

查看:100
本文介绍了Firefox OS认证的应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载并安装了FIrefox OS Simulator进行测试和开发.我要测试一些仅在经过认证的应用程序上允许的功能,例如SMS和电话,如

I have downloaded and installed FIrefox OS Simulator for testing and developing. I want to test some functionalities that are allowed only on certified applications, such as SMS and phone calling, as described here.

要在模拟器中访问此功能,我应该在清单(.webapp文件)中包括什么?

What should I include in my manifest (.webapp file) in order to access this functionality in the simulator?

谢谢, 塔玛斯·伊努特(Tamas Ionut)

Thanks, Tamas Ionut

推荐答案

这是非常手动的操作,但是我认为了解事物在后台的工作方式很酷(这是我永远知道的唯一方法)工作):

This is very manual, but I think it'll is cool to understand how stuff work under the hood (and it's the only way I know it'll always work):

  1. 确保您的manifest.webapp包括"type": "certified"
  2. 打包应用程序
  3. 将包含您的manifest.webappzip软件包的目录添加到模拟器的Gais webapps目录
  4. webapps.json上为您的应用添加一个条目.确保它具有"appstatus": 3
  5. 玩得开心:)
  1. Be sure your manifest.webapp includes "type": "certified"
  2. Pack the app
  3. Add the directory containing your manifest.webapp and the zip package to the simulator's Gais webapps directory
  4. Add an entry on webapps.json for your app. Be sure it has "appstatus": 3
  5. Have fun :)

模拟器Gaia的webapps目录应位于Firefox个人资料中,路径如下:

The webapps directory of your simulator's Gaia should be in your Firefox profile, on a path like this:

/home/username/.mozilla/firefox-trunk/foobarbaz.default/extensions/r2d2b2g@mozilla.org/profile/webapps/.


现在最简单但目前不那么简单的方法:


Now the easiest, but not currently that easy, way:

MDN具有条目,内容为

注意:如果要测试经过认证的应用程序API(如上所述),请在要在其上安装应用程序的设备(Firefox OS)上打开开发人员模式",并确保在清单中指定正确的类型. webapp文件.

Note: If you want to test certified app APIs (described above), turn on "developer mode" on the device you want to install the app on (Firefox OS) and make sure to specify the correct type in your manifest.webapp file.

我已经在Simulator上看到了该选项,但是最近已经消失了.我几乎不记得在某个地方看到有人说他们将禁用某些Simulator构建标志,但是由于我再也找不到它了.无论如何,您可以尝试两种选择:

I've seen that option on Simulator, but it has gone recently. I can barely recall seeing somewhere someone saying that they would disable some flags for the Simulator build, but as I can't find it anymore. Anyway, you could try two options:

  1. 自己构建模拟器(请注意,我将需要大量的时间和空间!),然后查看是否可以在此处获得此选项.如果它确实被禁用,则不太可能
  2. 实验室ftp 下载Simulator 1.1pre2或1.1pre3,我知道最后一个模拟器版本启用了该选项.
  1. building the Simulator yourself (I'll require tons of space and time, be aware!) and see if you can get this option there. It's not likely it'll work, if it was really disabled though
  2. Download Simulator 1.1pre2 ou 1.1pre3 from labs ftp, the last Simulator build I'm aware that had that option enabled.

这篇关于Firefox OS认证的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆