简体   繁体   English

是否可以为未登录的用户运行Google Spreadsheet Add-On?

[英]Is it possible to run Google Spreadsheet Add-On for not signed-in users?

I've built an add-on for Google spreadsheets. 我为Google电子表格构建了一个插件。 Its a simple chat that runs in Sidebar, it uses CacheService (public cache) for storing messages. 它是在边栏中运行的简单聊天,它使用CacheService(公共缓存)来存储消息。 It works great for collaborators, but it doesnt show up for not logged-in users. 它对协作者非常有用,但对于未登录的用户却不会显示。 Actually, even a custom Menu item doesnt show up. 实际上,即使自定义菜单项也不会出现。 It is still in development and is not published, it is bound to the Spreadsheet. 它仍在开发中,并且尚未发布,它已绑定到电子表格。 So is it possible to run it without user signing in? 那么有可能在没有用户登录的情况下运行它吗?

Not an official answer, but i highly doubt this will be available. 这不是官方的答案,但我高度怀疑这是否可用。 I assume you have the spreadsheet shared as 'public with anonymous write'. 我假设您已将电子表格共享为“匿名匿名公开”。 Apps scripts have quotas and they are deducted from the active user. Apps脚本具有配额,并且配额是从活动用户中扣除的。 If there is no active user i doubt google will allow that. 如果没有活动的用户,我怀疑Google会允许这样做。 There are other ways to let anonymous usera runs scripts, like a gas service published to run as the owner (not active user) but those are for web apps and not for addons or code that runs inside the spreadsheet (menus triggers etc) 还有其他方法可以让匿名用户运行脚本,例如发布以所有者身份(非活动用户)运行的加油站服务,但这些脚本适用于Web应用程序,不适用于在电子表格内运行的插件或代码(菜单触发器等)

You might be able to find what you're looking for here 您可能可以在这里找到想要的东西

https://developers.google.com/apps-script/add-ons/lifecycle https://developers.google.com/apps-script/add-ons/lifecycle

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM