Gmail中不能看到Gmail上下文小工具

时间:2016-11-26 03:54:10

标签: google-apps-marketplace google-gadget gmail-contextual-gadgets

我正在尝试开发一个gmail小工具。在阅读了google文档中提到的所有必需的peoint后,我准备了我的gadget.xml文件。但之后他们要求制作清单文件。但到目前为止,我已经搜索过,现在我们不需要准备任何清单文件了。现在,我们可以通过 Google Apps Marketplace SDK 进行准备。我在此处准备了一份清单,并将其保存并通过 console.developers.google.com 启用。

但在此之后,我也无法在Gmail中看到我的小工具。请任何有经验的开发人员帮我解决这个问题。我试图长时间解决这个问题。

这是我的gadget.xml代码:

<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs author="Company Name" height="500" author_email="abc@example.com" author_location="India">
<Require feature="dynamic-height"/>
<Require feature="views" />
<Require feature="google.contentmatch">
<Param name="extractors">google.com:MessageIDExtractor</Param>
<Param name="extractors">google.com:SenderEmailExtractor</Param>
</Require>
</ModulePrefs>
<Content type="html" view="card">
<![CDATA[
<p> Pragmatic Odoo Gmail Integration</p>
<script>console.log('Hello from gadget.')</script>
]]>
</Content>
</Module>

以下是我的小工具的Google Apps Marketplace SDK设置: enter image description here

1 个答案:

答案 0 :(得分:0)

注意以下提示:

  • 将应用添加到chrome web store并将其链接到您的Google项目,该项目描述了具有项目ID的上下文小工具。这是一个网上商店manifest.json的示例:

{
  "manifest_version": 2,
  "name": "Sample App",
  "short_name": "Dev",
  "version": "1.0.0",
  "default_locale": "en",
  "description": "Sample app",
  "app" : {
    "launch" : {
      "web_url" : "http://yourcompany.com"
    }
  },
  "icons": {
    "128": "icons/128x128-icon.png",
    "16": "icons/16x16-icon.png"
  },
	"container": ["DOMAIN_INSTALLABLE"],
	"api_console_project_id": "your-project-id"
}

  • 发布此应用后,添加它以测试Google域。由于您的小工具处于开发阶段,因此请勿将您的应用发布到公开。您可以选择不同的"Visibility options"

  • 要禁用缓存,请使用nogadgetcache = 1(例如https://mail.google.com/?nogadgetcache=1

  • 使用您要测试的管理员帐户登录,否则需要更多时间来更新清单。
  • 修改“Google Apps Marketplace SDK”后,点击“测试安装流程”,确保没有新的权限。

我做了这些部分并为我工作:

  • 将google.com:MessageIDExtractor定义为第一个扩展程序,但您不需要。
  

我建议您选择要在其他范围内使用的每个范围   扩展在这里!我不知道为什么看起来谷歌只是问   这些权限适用于我的小工具

  1. 使用逗号分别在gadget.xml中定义Param提取器:
  2. <Require feature="google.contentmatch">
      <Param name="extractors">
        google.com:MessageIDExtractor
      </Param>
      <Param name="extractors">
        google.com:SenderEmailExtractor
      </Param>
    </Require>

相关问题