从网页直接安装插件后,有什么方法可以向用户显示下一步吗? [英] Is there a way to show users next steps after direct add-on installation from web page?

查看:70
本文介绍了从网页直接安装插件后,有什么方法可以向用户显示下一步吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近发布了一个新的Google表格插件,发现在指示用户安装后下一步要做什么时遇到了困难.

I have recently published a new Google Sheets add-on and found difficulties in how to indicate users what to do next after installation.

当前有两种安装附加组件的方式:

There are two ways of add-on installation currently available :

  1. 打开附加组件"->获取加载项"菜单中,搜索并安装加载项.

  1. Open "Add-on" -> "Get add-ons" menu, search for an add-on and install it.

像下面的链接一样直接访问加载项网页并安装它.

Directly access the add-on web page like the link below and install it.

https://gsuite.google.com/marketplace/app/[添加-on 名称]/[附加ID]

https://gsuite.google.com/marketplace/app/[add-on name]/[add-on id]

对于第一种情况,我可以在 onInstall 事件后弹出一个对话框或侧边栏,并向用户显示说明,例如打开附加菜单,访问在线手册等.

For case 1, I can pop up a dialog or sidebar upon onInstall event, and show instructions to users, such as open an add-on menu, access an online manual and etc.

但是,对于情况2,我相信在附加组件安装之后没有可用的操作或事件.此时似乎有很多用户迷路了,放弃了下一步.

However, for case 2, I believe there is no action or event available after the add-on installation. It seems that many users are lost at this point and give up proceeding to the next step.

有什么方法可以接收类似于 onInstall 的事件并通知用户情况2下一步该怎么做?

Is there any way to receive an event similar to onInstall and notify users what to do next for case 2 ?

推荐答案

在case2(直接访问附加网页,如下面的链接并进行安装)的情况下,引起用户注意的唯一方法是:创建自定义的addOn菜单.当插件为 INSTALLED 而不是 ENABLED 时, onOpen() AuthMode.NONE 中运行.在这种授权模式下,您可以添加菜单,但不能直接通过弹出窗口捕获用户的注意.

The only way to get the notice of the user in case of case2(Directly access the add-on web page like the link below and install it) is to create the custom addOn menu. When the addon is INSTALLED and NOT ENABLED, onOpen() runs in AuthMode.NONE. In this authorization mode, you can add menus, but not capture the user attention directly through pop ups.

这篇关于从网页直接安装插件后,有什么方法可以向用户显示下一步吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆