I have a Gmail add-on that usses the following in its appsscript.json file:
{
"timeZone": "GMT",
"dependencies": {
"enabledAdvancedServices": [{
"userSymbol": "Gmail",
"serviceId": "gmail",
"version": "v1"
}]
},
"webapp": {
"access": "ANYONE",
"executeAs": "USER_ACCESSING"
},
"oauthScopes": ["https://www.googleapis.com/auth/gmail.addons.execute", "https://mail.google.com/", "https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/gmail.settings.basic"],
"gmail": {
"name": "<REDACTED>",
"logoUrl": "<REDACTED>",
"contextualTriggers": [{
"unconditional": {
},
"onTriggerFunction": "getContextualAddOn"
}],
"primaryColor": "#41f470",
"secondaryColor": "#94f441"
}
}
Is there a particular thing I need to do to keep the add on visible in Gmail? Sometimes it seems to disappear after a few hours and the only way to get it to appear again is to uninstall and install it again.
Thanks.
It does not related to your app json file. The reason that you are facing that is because your add-on seems to be having some troubles after running some time. There might be bugs in your add-on script. Would you share your script so I can review it?