Outlook 插件 - 从 Outlook 关闭 Windows 应用商店后,侧面加载的自定义插件消失 [英] Outlook Add In - Side Loaded Custom Add In disappears after I close the Windows Store from Outlook

查看:34
本文介绍了Outlook 插件 - 从 Outlook 关闭 Windows 应用商店后,侧面加载的自定义插件消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

非常困惑

我正在开发一个 Outlook 插件,以便通过撰写电子邮件窗口上的按钮打开一个窗格.

I am developing an Outlook Add-In to open a pane from a button on the compose email window.

我已经在 Outlook.com 上加载了一个测试帐户,它运行良好.

I have loaded into a test account on outlook.com, and it works perfectly.

当我将插件旁加载到 Outlook Desktop 时(通过文件直接加载清单 XML),系统接受它.

When I go to side-load the add into Outlook Desktop (by loading the manifest XML directly by file), the system accepts it.

但是,当我关闭 Microsoft Add-In Store 窗口时,该加载项不在撰写电子邮件中,而且当我去管理我的加载项时,我加载的清单也不在那里.

However, when I close the Microsoft Add-In Store window, the add-in is not in the compose email, AND when I go manage my add-ins, the manifest I loaded is not there.

该插件旨在从托管在 AWS 上的网络服务器获取所有图标和 iFrame HTML.我已在下方附上清单(不含所有 ID 信息以及我认为敏感的任何其他信息)

The add-in is designed to fetch all icons and iFrame HTML from a web-server hosted on AWS. I have attached the manifest down below (sans all ID information, and any other info I deemed sensitive)

一些注意事项

  1. 系统不会拒绝我的加载项.我看到加载项已成功加载到 Outlook 桌面商店的自定义部分.只有在我关闭此窗口后它才会消失.

  1. The system does not reject my add-in. I see the add-in successfully loaded in the custom section of the store in Outlook Desktop. It only disappears once I close this window.

加载项适用于 Outlook.com.通过了所有 QA 测试.

The add-in works on Outlook.com. Passed all QA tests.

我认为加载项由于某种原因被应用硬删除了?如果有办法从 Outlook 解决这些问题,我很想知道.这是我的第一个 Outlook 应用程序(通常是移动开发人员).

I assume the add-in is being hard-deleted by the app for some reason? If there is a way to troubleshoot these issues from Outlook, I would love to know. This is my first outlook application (generally a mobile developer).

Mac 桌面版 Outlook 和 PC 桌面版 Outlook 出现相同的问题.

The same issue happens for Outlook for Mac Desktop as it does Outlook for PC Desktop.

请帮忙!

    <?xml version="1.0" encoding="UTF-8"?>
<OfficeApp
  xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"

  <!--Version. Updates from the store only get triggered if there is a version change. -->
  <Version>1.0.0.0</Version>
  <ProviderName>Brgn.Tech</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <!-- The display name of your add-in. Used on the store and various places of the Office UI such as the add-ins dialog. -->
  <DisplayName DefaultValue="Brgn.Tech" />
  <Description DefaultValue="Easily access your Brgn.Tech Tenant Information from your outlook account!"/>

  <!-- Icon for your add-in. Used on installation screens and the add-ins dialog. -->
  <IconUrl DefaultValue="https://localhost:5001/brand-assets/brgnTechIcon.png" />
  <HighResolutionIconUrl DefaultValue="https://localhost:5001/brand-assets/brgnTechIcon.png"/>


  <!--If you plan to submit this add-in to the Office Store, uncomment the SupportUrl element below-->
  <SupportUrl DefaultValue="https://hello.brgn.tech" />

  <!-- Domains that will be allowed when navigating. For example, if you use ShowTaskpane and then have an href link, navigation will only be allowed if the domain is on this list. -->
  <AppDomains>
    <AppDomain>AppDomain1</AppDomain>
    <AppDomain>AppDomain2</AppDomain>
    <AppDomain>AppDomain3</AppDomain>
  </AppDomains>
  <!--End Basic Settings. -->

  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.1" />
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://localhost:5001/outlook"/>
      </DesktopSettings>
    </Form>
  </FormSettings>

  <Permissions>ReadWriteItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit" />
  </Rule>
  <DisableEntityHighlighting>false</DisableEntityHighlighting>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Requirements>
      <bt:Sets DefaultMinVersion="1.3">
        <bt:Set Name="Mailbox" />
      </bt:Sets>
    </Requirements>
    <Hosts>
      <Host xsi:type="MailHost">

        <DesktopFormFactor>

          <!-- Message Read -->
          <ExtensionPoint xsi:type="MessageComposeCommandSurface">
            <!-- Use the default tab of the ExtensionPoint or create your own with <CustomTab id="myTab"> -->
            <OfficeTab id="TabDefault">
              <!-- Up to 6 Groups added per Tab -->
              <Group id="msgReadGroup">
                <Label resid="groupLabel" />
                <!-- Launch the add-in : task pane button -->
                <Control xsi:type="Button" id="msgReadOpenPaneButton">
                  <Label resid="paneReadButtonLabel" />
                  <Supertip>
                    <Title resid="paneReadSuperTipTitle" />
                    <Description resid="paneReadSuperTipDescription" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="icon16" />
                    <bt:Image size="32" resid="icon32" />
                    <bt:Image size="80" resid="icon80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="messageComposeEmail" />
                  </Action>
                </Control>
                <!-- Go to http://aka.ms/ButtonCommands to learn how to add more Controls: ExecuteFunction and Menu -->
              </Group>
            </OfficeTab>
          </ExtensionPoint>
          <!-- Go to http://aka.ms/ExtensionPointsCommands to learn how to add more Extension Points: MessageRead, AppointmentOrganizer, AppointmentAttendee -->
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="icon16" DefaultValue="https://localhost:5001/brand-assets/brgnTechIcon.png"/>
        <bt:Image id="icon32" DefaultValue="https://localhost:5001/brand-assets/brgnTechIcon.png"/>
        <bt:Image id="icon80" DefaultValue="https://localhost:5001/brand-assets/brgnTechIcon.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="messageComposeEmail" DefaultValue="https://localhost:5001/outlook"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="groupLabel" DefaultValue="My Add-in Group"/>
        <bt:String id="customTabLabel"  DefaultValue="My Add-in Tab"/>
        <bt:String id="paneReadButtonLabel" DefaultValue="Display all properties"/>
        <bt:String id="paneReadSuperTipTitle" DefaultValue="Get all properties"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="paneReadSuperTipDescription" DefaultValue="Opens a pane displaying all available properties. This is an example of a button that opens a task pane."/>
      </bt:LongStrings>
    </Resources>
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
      <WebApplicationInfo>
        <Scopes>
          <Scope>user.readwrite</Scope>
          <Scope>calendars.readwrite</Scope>
          <Scope>contacts.readwrite</Scope>
          <Scope>mail.readwrite</Scope>
          <Scope>mail.send</Scope>
          <Scope>mailboxsettings.readwrite</Scope>
        </Scopes>
      </WebApplicationInfo>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>

推荐答案

问题似乎出在底部的 v1_1 版本覆盖中.删除后,我能够更正问题

It seems the issue was in the v1_1 version override on the bottom. After I deleted that, I was able to correct the problem

这篇关于Outlook 插件 - 从 Outlook 关闭 Windows 应用商店后,侧面加载的自定义插件消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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