O'Reilly logo

Learning Firefox OS Application Development by Tanay Pant

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building Check In!

We will now build a new application, called Check In! which allows users to log the locations they are in, along with notes/comments explaining what they are doing there. We will use two new WebAPIs namely Geolocation (for finding the location of the users and their devices) and IndexedDB (for storing the location and comments of the users).

We need to declare the application type as privileged in the manifest file and seek permissions in order to use the Geolocation WebAPI by mentioning it in the manifest file. So, let's write our manifest file first. As you can see in the following code, we can add permissions in the manifest file in regular JSON format by adding the name of the WebAPI we are using, along with the reason why ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required