The following topics are recommended starting points:
Of course, feel free to dive even further into Open Web Apps!
Installing the Web app
With the app and manifest published on the Web, you need to make Gecko aware of it. At install time, Gecko looks up the manifest and adds the necessary entries to the home screen, etc.
To install an app, call the
navigator.mozApps.install API. Here's example for an install button that you could embed in your app when you self-host your app:
<script> var manifest_url = "http://my.webapp.com/manifest.json"; </script> <button onclick="navigator.mozApps.install(manifest_url); return false;"> Install this awesome app on your homescreen! </button>
Note: the Install button could also be in an app market, such as the Firefox Marketplace, but it's often very handy to have an "Install as web app" button on the main page of your site.
Now visit your web site in the B2G browser app and tap the install button.