Reputation: 549
I am trying to create my first hello world described here:
http://developer.chrome.com/trunk/apps/first_app.html
but I got error There were warnings when trying to install this extension: Permission 'app.window' is unknown or URL pattern is malformed.
also, I had to add --enable-platform-apps to my shortcut to chrome...
What did I do wrong?
Thank you edit: this is manifest.json
{
"name": "Hello World!",
"description": "My first packaged app.",
"manifest_version": 2,
"version": "0.1",
"app": {
"background": {
"scripts": ["background.js"]
}
},
"permissions": ["experimental", "app.window"],
"icons": { "16": "calculator-16.png", "128": "calculator-128.png" }
}
chrome is 21.0.1180.88
Upvotes: 1
Views: 1416
Reputation: 1
When i changed the manifest file in the example as per the manifest file shown in this link http://developer.chrome.com/extensions/apps.html i am able to install this example app in chrome stable version i.e 21.0.1180.83.
My final manifest file content is
{
"name": "Hello World!",
"description": "My first packaged app.",
"version": "1",
"app": {
"launch": {
"local_path": "window.html"
}
},
"icons": {
"16": "calculator-16.png",
"128": "calculator-128.png"
}
}
Upvotes: 0
Reputation: 115950
You are using the current stable release -- Chrome 21 -- which does not include the app.*
APIs. If you want to use those APIs before they are incorporated into the stable release, you can develop your app using Chrome Canary, which is several version ahead of the stable release.
Note that the URL you reference has /trunk
in it, indicating that it is documentation for the most recent (unstable) version of Chrome.
Upvotes: 2