已发布的Chrome应用在应用店中“添加至Chrome”按钮不显示,求助
Hey there, let's work through this issue step by step—since you're new to Chrome app development, this is a common hiccup, so don't stress! Here are the most likely reasons your app only shows a "Visit Website" button, plus fixes to try:
Possible Causes & Solutions
1. You Published a Hosted Web App Instead of a Packaged App/Extension
Chrome Web Store treats hosted web apps (which just link to an external website) differently from packaged Chrome apps/extensions (which install locally on users' browsers). If your manifest is set up for a hosted app, the store will only display a "Visit Website" button.
- Check your
manifest.json: Packaged Chrome apps (Manifest V2) need an"app"field with a background script or launch configuration, like this example:{ "manifest_version": 2, "name": "Your App Name", "version": "1.0", "app": { "background": { "scripts": ["background.js"] } }, "icons": { "16": "icon16.png", "48": "icon48.png", "128": "icon128.png" } } - Note: Manifest V3 has phased out Chrome Apps—if you're using V3, consider migrating to a Chrome Extension instead, which uses the
"action"field instead of"app".
2. Invalid or Incomplete Manifest Configuration
Missing required fields or syntax errors in your manifest.json can prevent the store from recognizing your app as installable:
- Make sure you include all mandatory fields:
name,version,manifest_version, and properly sized icons (16x16, 48x48, 128x128 are required). - Double-check your JSON for typos—even a missing comma can break manifest validation.
3. Wrong Category Selected During Publication
If you picked the "Website" category when submitting your app, the store will treat it as a link rather than an installable app.
- Head to the Chrome Web Store Developer Dashboard, select your app, go to the "Store Listing" section, and confirm the category is set to either "Extensions" or "Chrome Apps" (for Manifest V2 packaged apps).
4. Content Security Policy (CSP) or Permission Issues
A restrictive or invalid CSP, or missing required permissions, can cause the store to hide the install button:
- For Manifest V2, avoid overly permissive CSP rules like
unsafe-inlineorunsafe-evalunless absolutely necessary. - For Manifest V3, stick to strict CSP guidelines (e.g.,
script-src 'self'). - Open your app's store page, press F12 to open the developer console, and check for errors related to manifest validation or policy violations.
5. Browser Cache or Session Glitches
Sometimes cached data can cause incorrect display in the Web Store:
- Try viewing your app's page in a Chrome incognito window to bypass cached data.
- Clear your Chrome browser cache (Settings > Privacy and security > Clear browsing data) and reload the page.
Final Tip
If you're still stuck, check the "Status" tab in your Developer Dashboard for pending reviews or validation errors—often the store will flag issues that prevent the install button from appearing.
内容的提问来源于stack exchange,提问作者Subrata Mallik

