How to load Gmail addon without opening mail message

北城以北 提交于 2019-12-07 22:28:51

问题


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

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