This is a demo app for Firefox OS, loosely based on fxosstub, meant to act as a simple boilerplate for getting started with apps for Firefox OS.
It will give you a button to install it in Firefox OS - on a device, in the Firefox OS Simulator (Simulator Introduction) and in certain Nightly versions of Firefox.
It is a showcase of:
- Web Activities
- WebAPI usage
- Adding offline support and more in Firefox OS!
To add your own icon, I recommend using the Firefox OS app icons style guide.
The Firefox OS Boilerplate App follow the latest Gaia style of Firefox 1.2, but note that there is no obligation to add the same look, and feel to your application: Firefox OS applications are web applications, so no need to follow a UI guideline.
To test/install this app, the recommended way is to download it or clone/fork this repository and run it in the Firefox OS Simulator by clicking Add Directory.
Alternatively, you can test-run it from GitHub by installing it in the Firefox OS Simulator Dashboard by providing this URL:
You can test packaged apps in version 2 and higher of the Firefox OS Simulator, by using the Add Directory button. If you want to access privileged APIs - such as deviceStorage, cross-domain XMLHttpRequest etc - you need to set type and permissions in the manifest file. E.g.
{
"version": "1",
"name": "Firefox OS Boilerplate App",
"type" : "privileged"
…
And:
"permissions": {
"device-storage:pictures": {
"access": "readcreate"
},
"systemXHR":{},
"contacts": {
"description" : "Reading out contacts",
"access": "readcreate"
}
}
All options to test packaged apps are outlined in the How to install packaged apps in Firefox OS – options and tools article
Transifex is the platform that we use to manage the localization workflow.
Sign up for a Transifex account and visit the Firefox OS Boilerplate project.
Click on the language that you want to localize and click the button
If your language is not listed, click the button.
Select the project you want to translate and hit the button.
When your translation is complete, we'll pull it into this repository.