问题
We need to develop the gmail addon to read the checked mail messages and process the content.We are using the below application json:
{
"oauthScopes": [
"https://www.googleapis.com/auth/gmail.addons.execute",
"https://www.googleapis.com/auth/gmail.readonly"
],
"gmail": {
"name": "My Addon",
"logoUrl": "https://www.gstatic.com/images/icons/material/system/2x/bookmar k_black_24dp.png",
"contextualTriggers": [{
"unconditional": {},
"onTriggerFunction": "buildAddOn"
}],
"primaryColor": "#4285F4",
"secondaryColor": "#4285F4"
}
}
We have tried above json to load the gmail addon without opening message.
How to fix the error we get:
Open an Email Select an email for My Gmail Add-on to recommend content for you.
回答1:
Unfortunately Gmail Add-on
can not be triggered unless you open an email. we are also looking for the same feature as it is very critical for our use case. There is an ongoing thread for the people that are looking for this feature, please add your comments to the thread for getting more weightage on it.
https://issuetracker.google.com/issues/111312904
https://issuetracker.google.com/issues/116537906
回答2:
This feature will be available in the upcoming G Suite add-ons framework
https://gsuiteupdates.googleblog.com/2019/04/gsuite-add-ons-beta.html
来源:https://stackoverflow.com/questions/54028654/how-to-load-gmail-addon-without-opening-mail-message