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 the application needs to use the API. This information is used by Firefox Marketplace when reviewing your application, and by users when they are shown the connect screen when the applications access the API. Here's the manifest file for the Check...