January 2015
Beginner
324 pages
7h 42m
English
Chrome apps are zip files that contain all the assets you’d usually expect in a web application. They contain HTML files, JavaScript files, images, videos, and so on. In addition, each zip archive contains two special files: manifest.json and background.js.
manifest.json describes the Chrome app’s metadata and typically looks like this:
| ChromeApps/SimpleApp/manifest.json | |
| | { |
| | "manifest_version": 2, |
| | "name": "My First Chrome App", |
| | "version": "1", |
| | "permissions": ["serial"], |
| | "app": { |
| | "background": { |
| | "scripts": ["background.js"] |
| | } |
| | } |
| | } |
It uses JavaScript Object Notation (JSON)[156] and supports a lot of different options.[157]
Only name and version are mandatory. They specify the app’s name ...
Read now
Unlock full access