Google Chrome API: How do I add my app to show an icon on the “New Tab” (Apps) page?

限于喜欢 提交于 2019-12-10 21:25:47

问题


I noticed that a "New Tab" page has an apps section, but by default an application is not added there. What do I need to do to have my application appear there?


回答1:


Hosted apps and packed apps will automatically add an icon to the new tab page. Make sure you have a good 128 pixel icon registered in the manifest.




回答2:


http://code.google.com/chrome/extensions/apps.html

Add to manifest:

"app": {
    "launch": {
      "local_path": "main.html"
    }
  },

You'll also need a 128x128 icon, specify it here:

  "icons": {
    "128": "icon_128.png"
  }



回答3:


If your chrome is set to open multiple pages, do the following:

  1. go to "Settings"
  2. Go to the second sub-heading "On startup"
  3. Make sure the 3rd choice is selected "Open a specific...or set of pages"
  4. Click on "Set Page"
  5. On Add New Page type "www.google.com"
  6. Press "Enter"
  7. Highlight the hyperlink "www.google.com" press delete

You should see a blank line where the apps tab should be, but it's not empty.



来源:https://stackoverflow.com/questions/8870639/google-chrome-api-how-do-i-add-my-app-to-show-an-icon-on-the-new-tab-apps-p

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!