CardService.OnClose.RELOAD_ADD_ON not reloading addon on close

333 views
Skip to first unread message

Chad Brown

unread,
Dec 6, 2022, 1:46:44 PM12/6/22
to Google Apps Script Community
Anyone else noticed this issue with Google Workspace addons?

When opening a card using this code (found on the google API reference site) the addon will open as a new overlay, but does not wait for the overlay to close, instead it waits around 4 seconds and then looses control over the overlay.  So when the overlay closes it doesn't refresh the addon.

// A button that opens as a link in an overlay and
// requires a reload when closed.
var button = CardService.newTextButton()
    .setText("This button opens a link in an overlay window")
    .setOpenLink(CardService.newOpenLink()
        .setUrl("https://www.google.com")
        .setOpenAs(CardService.OpenAs.OVERLAY)
        .setOnClose(CardService.OnClose.RELOAD_ADD_ON));

Summer Moon

unread,
Dec 20, 2022, 7:28:14 AM12/20/22
to Google Apps Script Community
I have the same issue. Up until a few weeks ago it was working fine. Now, it doesn't work anymore. Bug?

Quentin Escaron

unread,
Feb 10, 2023, 4:32:05 AM2/10/23
to Google Apps Script Community
I have the same problem which didn't occur before !

Michael Tanjung

unread,
Feb 23, 2023, 4:22:04 PM2/23/23
to Google Apps Script Community

Shaji Sarangadharan

unread,
Feb 23, 2023, 9:40:05 PM2/23/23
to google-apps-sc...@googlegroups.com
Same issue with RELOAD too.

Shaji Sarangadharan

--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/14b3362e-fe60-4d2d-b6e6-1529ffa1178bn%40googlegroups.com.

Bruce Mcpherson

unread,
Feb 24, 2023, 3:20:07 AM2/24/23
to google-apps-sc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages