Book Image

Learning Firefox OS Application Development

By : Tanay Pant
Book Image

Learning Firefox OS Application Development

By: Tanay Pant

Overview of this book

With broad compatibility, the latest in web technologies, and powerful development tools, Firefox is a great choice for both web developers and end users. Firefox OS’s promotion of HTML5 as a first class citizen opens up the walled gardens of mobile application development for web developers. It is because of this initiative that no special SDKs are required to develop for Firefox OS. This book will help you excel in the art of developing applications for Firefox OS. It sequentially covers knowledge building, skills acquisition, and practical applications. Starting with an introduction to Firefox OS, usage of WebIDE, and then the application structure, this book introduces applications of increasing complexity with each chapter. An application that measures your tapping speed, a geolocation tagging application, and a photo editing and sharing application are the three applications that will be built from scratch. You will learn about topics such as the difference between various types of Firefox OS applications, application manifest files, offline apps, and designing principles for applications. You will also learn to test and submit the applications to the marketplace and finally maintain the repository of the Firefox OS application. By the end, you will be able to develop beautifully designed, fully-fledged, and rigorously tested Firefox OS applications and also share them at the Firefox OS Marketplace.
Table of Contents (17 chapters)
Learning Firefox OS Application Development
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

HTML5 and open web applications


Open web applications are those web applications that make use of open standard technologies, such as HTML5, CSS, JavaScript, and so on. These applications differ from native applications based on the fact that open web applications run on a web browser and hence can be accessed from a wide range of devices. These applications can be installed, access device hardware via the WebAPIs, and be run offline by making use of technologies such as AppCache and IndexedDB. However, these applications should be designed in such a way that they are cross-platform; if a device does not have all the hardware capabilities, then there will be a graceful degradation of the features of the application. Open web applications do not make use of proprietary technologies.

Let's take the example of Stack Edit (a web application), which is an online text editor that parses the markdown text and is very popular among authors. It is an example of an open web application. When loaded for the first time, it stores all its static data in the form of AppCache. All subsequent files that you store with the help of the in-browser text editor will be stored in the browser itself with IndexedDB. The application does not require a working Internet connection on subsequent runs.