Hello, I'm trying to create a Google Sheets add-on that uses a card-based sidebar UI, but I've run into a persistent issue that has stumped me. I've followed all the official documentation and troubleshooting steps I could find, but the add-on's UI will not appear in the Extensions menu. I'd appreciate any insight from the community.
My add-on's onSheetsHomepage(e) function executes successfully, as confirmed by a "Completed" status in the Apps Script Executions log. However, the add-on never appears in the Google Sheets Extensions menu, so I can't launch the sidebar or see the add-on. Curiously, a simple onOpen() function I previously used worked perfectly, which suggests the issue is specific to the onSheetsHomepage trigger or the CardService UI rendering.
The app is a simple password generator. The code is structured as a standard Google Workspace Add-on.
Apps Script Code ( .gs file):
appsscript.json Manifest File:
I've been through a comprehensive troubleshooting process, which includes:
Correct Manifest Configuration: I've confirmed that the appsscript.json file is correctly formatted, with "homepageTrigger" pointing to "onSheetsHomepage" and "oauthScopes" including both spreadsheets and script.container.ui.
Add-on Deployment: The script is deployed as an "Add-on" type (not a "Web App") from the Apps Script editor.
Test Installation: I've used the "Test deployment" feature from the "Manage deployments" panel, and the installation completed successfully.
Authorization: I've gone through the OAuth consent screen and clicked "Allow" for all requested scopes. I've also tried removing access from my Google account and re-installing to force a fresh authorization.
Execution Log Check: The Executions log shows a "Completed" status for onSheetsHomepage every time I attempt to launch the add-on from Extensions > Add-ons > [My Add-on Name] > Open, indicating the function is successfully running without crashing.
Browser & Account Check: I've cleared my browser cache and cookies, used an Incognito window, and confirmed that I am signed into the exact same Google account in both the Apps Script editor and Google Sheets.
GCP Project Configuration: I've confirmed that the Google Sheets API and Google Workspace Marketplace SDK are enabled in the linked GCP project, and the OAuth consent screen is configured for "External" users and is in "Testing" mode with the correct scopes added.
My Specific Question:
Given that onSheetsHomepage executes successfully but the UI doesn't appear, and the add-on itself is not listed in the Extensions menu (even after Test Deployment), what could possibly be causing this behavior? Are there any subtle issues with CardService UI rendering or a specific manifest field that could lead to this? How can I definitively confirm that the https://www.googleapis.com/auth/script.container.ui scope is properly registered and authorized for this deployment, as it seems to be the last possible point of failure?
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com .
To view this discussion visit https://groups.google.com/d/msgid/google-apps-script-community/09e70a5a-c4ed-43c9-8657-90f9a1dd56fcn%40googlegroups.com .
You received this message because you are subscribed to a topic in the Google Groups "Google Apps Script Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-script-community/vo_IERemDos/unsubscribe .
To unsubscribe from this group and all its topics, send an email to google-apps-script-c...@googlegroups.com .
To view this discussion visit https://groups.google.com/d/msgid/google-apps-script-community/CANnM%3DNxPSCFnHk8AGx1YT4anhJsZ_cpmjfizXQxVD%2BqMTC8Kkw%40mail.gmail.com .