即使在上下文中i' m时,请致电homepagetrigger

发布于 2025-02-07 22:08:52 字数 941 浏览 1 评论 0原文

我的清单中有一个:

"addOns": {
    "common": {
      "homepageTrigger": {
        "runFunction": "handleHomePageStart",
        "enabled": true
      },
      "name": "MyApp",
      "openLinkUrlPrefixes": [
        "https://www.myApp.com/",
      ],
      "useLocaleFromApp": true
    },
    "gmail": {
      "contextualTriggers": [
        {
          "unconditional": {},
          "onTriggerFunction": "handleStart"
        }
      ],
      "composeTrigger": {
        "selectActions": [
          {
            "text": "compose method",
            "runFunction": "handleStartCompose"
          }
        ],
        "draftAccess": "METADATA"
      }
    },
...

当我不在上下文中时,将显示主页,并在执行中看到该方法的调用(handlehomePagestart)。但是,当我单击电子邮件时,主页和上下文触发器都会被触发,因为我可以看到列表中的handlehomePagestarthandlestart executions executions handlestart handlestart。这是设计还是我的应用程序有一些缺陷?

提前致谢!

I have this in my manifest:

"addOns": {
    "common": {
      "homepageTrigger": {
        "runFunction": "handleHomePageStart",
        "enabled": true
      },
      "name": "MyApp",
      "openLinkUrlPrefixes": [
        "https://www.myApp.com/",
      ],
      "useLocaleFromApp": true
    },
    "gmail": {
      "contextualTriggers": [
        {
          "unconditional": {},
          "onTriggerFunction": "handleStart"
        }
      ],
      "composeTrigger": {
        "selectActions": [
          {
            "text": "compose method",
            "runFunction": "handleStartCompose"
          }
        ],
        "draftAccess": "METADATA"
      }
    },
...

When I'm out of context, the homepage is displayed and I see in the executions a call for that method(handleHomePageStart). However, when I click on an email, both the homePage and context triggers are fired, as I can see both handleHomePageStart and handleStart executions in the list. Is this by design or my app has some flaw on it?

Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文