Gmail Add-Ons onTriggerFunction only ran once per email even if opening the email again

后端 未结 2 810
终归单人心
终归单人心 2021-02-05 18:34

We\'re building a Gmail Add-On however we wish to show a different card on depending on some business logic when the add-on\'s onTriggerFunction is called. This wor

2条回答
  •  渐次进展
    2021-02-05 18:50

    Unfortunately there is no way at the moment (July 2019) to force the trigger to run every time the email is opened. You can use ActionResponseBuilder.setStateChanged(true) as a response to a button click to instruct Gmail to clear the cache, but it can't be sent along with a normal card response.

提交回复
热议问题