Gmail Add-on Launch Criteria

Can someone accurately describe the launch criteria for Gmail add scripts? Apparently, the trigger is not called every time a user moves between Gmail conversations.

The only documentation I can find is https://developers.google.com/gmail/add-ons/how-tos/building#note1 , which states:

the only contextual trigger type available is the unconditional, which triggers all emails regardless of content.

I interpreted this as meaning that the trigger is called every time the user goes to another gmail session, however this is not the case:

The first time I go to some Gmail conversation, an additional trigger fires. And when I switch to another conversation using the "New" or "Old" corner bracket button, the trigger is called again for a new conversation. But when I go back to the first page using the corner bracket button, the add trigger does not work. (This is simple enough to show this by showing a timestamp when creating each UI map.) It seems that some kind of internal caching is happening - is there a way to disable this or otherwise run my additional script every time the user moves between dialogs Gmail?

+16
source share
1

Google Apps Script Gmail, , Gmail. , , , . , , . , https://script.google.com/. " " β†’ " ". , " " "". . . Gmail-add on

. . , gmail - google-apps? , .

+2

Source: https://habr.com/ru/post/1693776/


All Articles