Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning Firefox OS Application Development
  • Table Of Contents Toc
Learning Firefox OS Application Development

Learning Firefox OS Application Development

By : Pant
5 (1)
close
close
Learning Firefox OS Application Development

Learning Firefox OS Application Development

5 (1)
By: 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 (11 chapters)
close
close
10
Index

Making hosted applications installable


In this section, we will work on making our hosted application installable so that users who visit our application through the web browser on their Firefox OS mobiles are provided with an option to install the application on their phones, as shown in the following screenshot:

The Install App button will only show up if the user opens the application on Firefox OS. When the user loads the website on a desktop browser, we will keep the button hidden. We will also keep it hidden when the hosted web application that the user opens is already installed on their device.

We need to make changes in our clickr.js file in order to add the Install button. You will notice a new property under the clickr object named manifest_url that needs to be set to null. There is a new function called install(), where the variable installLocFind installs the application. If it returns a success, which means the application has been successfully installed, then it will hide the...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Learning Firefox OS Application Development
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon