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.
What should I include in my manifest (.webapp file) in order to access this functionality in the simulator?
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):
manifest.webapp
includes "type": "certified"
manifest.webapp
and the zip
package to the simulator's Gais webapps
directorywebapps.json
for your app. Be sure it has "appstatus": 3
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 has an entry that says
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.
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: