ios - iOS 上 OfficeJS Outlook 加载项的侧载问题

标签 ios office-js outlook-web-addins

更新 #2:

我创建了 OfficeDev/office-js#124OfficeDev/office-js-docs#1415以便 Microsoft 的某人 响应此问题。事实证明,无论是在线还是在 Outlook for iOS 应用程序中使用 Microsoft 支持都没有结果。

更新 #1:

看来,将 list 基本级别的要求集从 Mailbox 1.5 降级到 Mailbox 1.4 会使我的旁加载加载项出现在我的 iOS 上设备。 <强> This looks like a bug!

但是,这样做会扩大支持平台的列表以包括 Office 2013。Based on the answer to another of my questions ,这意味着我需要在 VersionOverridesV1_0 级别设置 Mailbox 1.4

我仍将 Mailbox 1.5 设置为 VersionOverridesV1_1 级别,以便支持调用 Outlook REST API 和支持固定任务 Pane 。

我的加载项(使用 Mailbox 1.5 中添加的 API)能否在 Outlook 2013 上正常运行?

(具体来说,我正在使用新的 Office.context.mailbox.getCallbackTokenAsync() 方法来获取 REST token 。)


我正在尝试让我的加载项出现在我的 iOS 设备上,以便我可以对其进行测试。该设备是安装了 iOS 11.0.3 的 iPhone 6s。

我要定位:

  • Outlook 2016 或更高版本
  • 网页版 Outlook
  • Mac 版 Outlook 2016
  • iOS 版 Outlook

我需要 Mailbox 1.5 才能支持 calling the Outlook REST APIs并支持pinnable taskpanes .

这是我的 list :

<?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"
  xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="MailApp">
  <Id>40ca534e-480c-444f-85bf-9f7051f23fe2</Id>
  <Version>1.0.2.0</Version>
  <ProviderName>TitleX E-Conveyancing Pty Ltd</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="[TEST] TitleX" />
  <Description DefaultValue="Save your mail to TitleX."/>
  <IconUrl DefaultValue="https://outlookapp.test.titlex.com.au/images/icon-64.png" />
  <HighResolutionIconUrl DefaultValue="https://outlookapp.test.titlex.com.au/images/icon-128.png" />
  <SupportUrl DefaultValue="https://community.titlex.com.au/s/" />
  <AppDomains>
    <!--LEAP Add-in Domains -->
    <AppDomain>https://outlookapp-dev.leap365.com/</AppDomain>
    <AppDomain>https://outlookapp-test.leap365.com/</AppDomain>
    <AppDomain>https://outlookapp.leap365.com/</AppDomain>
    <!--TitleX Add-in Domains -->
    <AppDomain>https://outlookapp.dev.titlex.com.au/</AppDomain>
    <AppDomain>https://outlookapp.test.titlex.com.au/</AppDomain>
    <AppDomain>https://outlookapp.titlex.com.au/</AppDomain>
    <!-- LEAP Auth -->
    <AppDomain>https://auth-dev.leap.services/</AppDomain>
    <AppDomain>https://auth-test.leap.services/</AppDomain>
    <AppDomain>https://auth.leap.services/</AppDomain>
    <!-- TitleX Auth -->
    <AppDomain>https://login.dev.titlex.com.au/</AppDomain>
    <AppDomain>https://login.test.titlex.com.au/</AppDomain>
    <AppDomain>https://login.titlex.com.au/</AppDomain>
    <AppDomain>https://login.dev.titlex.co.uk/</AppDomain>
    <AppDomain>https://login.test.titlex.co.uk/</AppDomain>
    <AppDomain>https://login.titlex.co.uk/</AppDomain>
    <AppDomain>https://login.dev.titlex.com/</AppDomain>
    <AppDomain>https://login.test.titlex.com/</AppDomain>
    <AppDomain>https://login.titlex.com/</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>
  <Requirements>
    <Sets DefaultMinVersion="1.5">
      <Set Name="Mailbox" />
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://outlookapp.test.titlex.com.au/titlex.html"/>
        <RequestedHeight>280</RequestedHeight>
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadWriteMailbox</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" /></Rule>
  <DisableEntityHighlighting>false</DisableEntityHighlighting>
  <VersionOverrides
    xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Requirements>
      <bt:Sets DefaultMinVersion="1.5">
        <bt:Set Name="Mailbox" />
      </bt:Sets>
    </Requirements>
    <Hosts>
      <Host xsi:type="MailHost">
        <DesktopFormFactor>
          <FunctionFile resid="TitleX.Functions.Url" />
          <!-- Message Read -->
          <ExtensionPoint xsi:type="MessageReadCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="TitleX.Group1">
                <Label resid="TitleX.Group1Label" />
                <Control xsi:type="Button" id="TitleX.DefaultCommand">
                  <Label resid="TitleX.DefaultCommand.Label" />
                  <Supertip>
                    <Title resid="TitleX.DefaultCommand.Label" />
                    <Description resid="TitleX.DefaultCommand.Tooltip" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="TitleX.Icon.16" />
                    <bt:Image size="32" resid="TitleX.Icon.32" />
                    <bt:Image size="80" resid="TitleX.Icon.80" />
                    <bt:Image size="20" resid="TitleX.Icon.20" />
                    <bt:Image size="24" resid="TitleX.Icon.24" />
                    <bt:Image size="40" resid="TitleX.Icon.40" />
                    <bt:Image size="48" resid="TitleX.Icon.48" />
                    <bt:Image size="64" resid="TitleX.Icon.64" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="TitleX.Taskpane.Url" />
                  </Action>
                </Control>
              </Group>
              <!--<Label resid="Leap.TabLabel"/>-->
            </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="TitleX.Icon.16" DefaultValue="https://outlookapp.test.titlex.com.au/images/icon-16.png"/>
        <bt:Image id="TitleX.Icon.32" DefaultValue="https://outlookapp.test.titlex.com.au/images/icon-32.png"/>
        <bt:Image id="TitleX.Icon.80" DefaultValue="https://outlookapp.test.titlex.com.au/images/icon-80.png"/>
        <bt:Image id="TitleX.Icon.20" DefaultValue="https://outlookapp.test.titlex.com.au/images/icon-20.png" />
        <bt:Image id="TitleX.Icon.24" DefaultValue="https://outlookapp.test.titlex.com.au/images/icon-24.png" />
        <bt:Image id="TitleX.Icon.25" DefaultValue="https://outlookapp.test.titlex.com.au/images/icon-25.png" />
        <bt:Image id="TitleX.Icon.40" DefaultValue="https://outlookapp.test.titlex.com.au/images/icon-40.png" />
        <bt:Image id="TitleX.Icon.48" DefaultValue="https://outlookapp.test.titlex.com.au/images/icon-48.png" />
        <bt:Image id="TitleX.Icon.64" DefaultValue="https://outlookapp.test.titlex.com.au/images/icon-64.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="TitleX.Taskpane.Url" DefaultValue="https://outlookapp.test.titlex.com.au/titlex.html" />
        <bt:Url id="TitleX.Functions.Url" DefaultValue="https://outlookapp.test.titlex.com.au/functions.html" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="TitleX.TabLabel" DefaultValue="[TEST] TitleX" />
        <bt:String id="TitleX.Group1Label" DefaultValue="TitleX" />
        <bt:String id="TitleX.DefaultCommand.Label" DefaultValue="[TEST] TitleX Mail Manager" />
        <bt:String id="TitleX.DefaultCommand.Title" DefaultValue="[TEST] TitleX" />
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="TitleX.DefaultCommand.Tooltip" DefaultValue="Click to show the add-in." />
        <bt:String id="TitleX.Description" DefaultValue="Save your mail to TitleX." />
      </bt:LongStrings>
    </Resources>
    <!-- NOTE: TO SUPPORT A PINNABLE TASKPANE AND MOBILEFORMFACTOR -->
    <VersionOverrides
      xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
      <Requirements>
        <bt:Sets DefaultMinVersion="1.5">
          <bt:Set Name="Mailbox" />
        </bt:Sets>
      </Requirements>
      <Hosts>
        <Host xsi:type="MailHost">
          <DesktopFormFactor>
            <FunctionFile resid="TitleX.Functions.Url" />
            <!-- Message Read -->
            <ExtensionPoint xsi:type="MessageReadCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="TitleX.Group1">
                  <Label resid="TitleX.Group1Label" />
                  <Control xsi:type="Button" id="TitleX.DefaultCommand">
                    <Label resid="TitleX.DefaultCommand.Label" />
                    <Supertip>
                      <Title resid="TitleX.DefaultCommand.Label" />
                      <Description resid="TitleX.DefaultCommand.Tooltip" />
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="TitleX.Icon.16" />
                      <bt:Image size="32" resid="TitleX.Icon.32" />
                      <bt:Image size="80" resid="TitleX.Icon.80" />
                      <bt:Image size="20" resid="TitleX.Icon.20" />
                      <bt:Image size="24" resid="TitleX.Icon.24" />
                      <bt:Image size="40" resid="TitleX.Icon.40" />
                      <bt:Image size="48" resid="TitleX.Icon.48" />
                      <bt:Image size="64" resid="TitleX.Icon.64" />
                    </Icon>
                    <Action xsi:type="ShowTaskpane">
                      <SourceLocation resid="TitleX.Taskpane.Url" />
                      <SupportsPinning>true</SupportsPinning>
                    </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>
          <!-- See https://learn.microsoft.com/en-us/outlook/add-ins/add-mobile-support -->
          <MobileFormFactor>
            <FunctionFile resid="TitleX.Functions.Url" />
            <ExtensionPoint xsi:type="MobileMessageReadCommandSurface">
              <Group id="TitleX.Group1">
                <Label resid="TitleX.Group1Label" />
                <Control xsi:type="MobileButton" id="TitleX.DefaultCommand">
                  <Label resid="TitleX.DefaultCommand.Label" />
                  <Icon xsi:type="bt:MobileIconList">
                    <bt:Image size="25" scale="1" resid="TitleX.Icon.25" />
                    <bt:Image size="25" scale="2" resid="TitleX.Icon.25" />
                    <bt:Image size="25" scale="3" resid="TitleX.Icon.25" />
                    <bt:Image size="32" scale="1" resid="TitleX.Icon.32" />
                    <bt:Image size="32" scale="2" resid="TitleX.Icon.32" />
                    <bt:Image size="32" scale="3" resid="TitleX.Icon.32" />
                    <bt:Image size="48" scale="1" resid="TitleX.Icon.48" />
                    <bt:Image size="48" scale="2" resid="TitleX.Icon.48" />
                    <bt:Image size="48" scale="3" resid="TitleX.Icon.48" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="TitleX.Taskpane.Url" />
                  </Action>
                </Control>
              </Group>
            </ExtensionPoint>
          </MobileFormFactor>
        </Host>
      </Hosts>
      <Resources>
        <bt:Images>
          <bt:Image id="TitleX.Icon.16" DefaultValue="https://outlookapp.test.titlex.com.au/images/icon-16.png"/>
          <bt:Image id="TitleX.Icon.32" DefaultValue="https://outlookapp.test.titlex.com.au/images/icon-32.png"/>
          <bt:Image id="TitleX.Icon.80" DefaultValue="https://outlookapp.test.titlex.com.au/images/icon-80.png"/>
          <bt:Image id="TitleX.Icon.20" DefaultValue="https://outlookapp.test.titlex.com.au/images/icon-20.png" />
          <bt:Image id="TitleX.Icon.24" DefaultValue="https://outlookapp.test.titlex.com.au/images/icon-24.png" />
          <bt:Image id="TitleX.Icon.25" DefaultValue="https://outlookapp.test.titlex.com.au/images/icon-25.png" />
          <bt:Image id="TitleX.Icon.40" DefaultValue="https://outlookapp.test.titlex.com.au/images/icon-40.png" />
          <bt:Image id="TitleX.Icon.48" DefaultValue="https://outlookapp.test.titlex.com.au/images/icon-48.png" />
          <bt:Image id="TitleX.Icon.64" DefaultValue="https://outlookapp.test.titlex.com.au/images/icon-64.png" />
        </bt:Images>
        <bt:Urls>
          <bt:Url id="TitleX.Taskpane.Url" DefaultValue="https://outlookapp.test.titlex.com.au/titlex.html" />
          <bt:Url id="TitleX.Functions.Url" DefaultValue="https://outlookapp.test.titlex.com.au/functions.html" />
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="TitleX.TabLabel" DefaultValue="[TEST] TitleX" />
          <bt:String id="TitleX.Group1Label" DefaultValue="TitleX" />
          <bt:String id="TitleX.DefaultCommand.Label" DefaultValue="[TEST] TitleX Mail Manager" />
          <bt:String id="TitleX.DefaultCommand.Title" DefaultValue="[TEST] TitleX" />
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="TitleX.DefaultCommand.Tooltip" DefaultValue="Click to show the add-in." />
          <bt:String id="TitleX.Description" DefaultValue="Save your mail to TitleX." />
        </bt:LongStrings>
      </Resources>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>

这是 validate-office-addin上述加载项 list 的结果:

Calling validation service. This might take a moment...
-------------------------------------
Validation: Passed
Based on the requirements specified in your manifest, your add-in can run on the following platforms; your add-in will be tested on these platforms when you submit it to the Office Store:
  - Outlook 2016 or later
  - Outlook 2016 for Mac
  - Outlook for iOS
  - Outlook on the Web
Important: This analysis is based on the requirements specified in your manifest and does not account for any runtime JavaScript calls within your add-in. For information about which API sets and features are supported on each platform, see Office Add-in host and platfo
rm availability. (https://dev.office.com/add-in-availability).

*This does not include mobile apps. You can opt-in to support mobile apps when you submit your add-in.
-------------------------------------

查看 Office Add-in host and platform availability for Outlook 的文档,我看到我想要定位的所有平台都支持 Mailbox 1.5。

所以,一切看起来都对齐了,但我的加载项不会出现在我的 iOS 设备上!

但是,如果我将要求集从 1.5 降级到 1.4,然后再次旁加载,就会出现加载项。显然,这与我的预期相反。

问题:为什么在我的 list 上指定 Mailbox 1.5 要求集使得我的旁加载加载项不会出现在我的 iOS 设备上?请帮忙。

最佳答案

截至 2018 年 6 月 26 日,Outlook for iOS 2.82.0 现在可以正确地旁加载我的加载项以进行测试。

关于ios - iOS 上 OfficeJS Outlook 加载项的侧载问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49789438/

相关文章:

ios - 设计这个核心数据数据库的好方法是什么?

jquery - Mobile WebKit按钮点击伪类

iphone - 尝试调用 reverseGeocodeLocation,但程序一直跳过函数调用。有任何想法吗?

javascript - 我需要通过office.js删除word消息

office-js - Mac 上的 Outlook Addin API body.getAsync 缺少某些样式

javascript - 如何插入或获取内容控件、Outlook Web 插件 JavaScript?

ios - 授权 header 在获取中不起作用 - React Native

office-js - OneNote Office.js API : Updating the text of a paragraph and indenting it as needed

office-js - 无法通过 Office JS API 获取用户身份 token

javascript - 如何避免从 Outlook Web 插件上载打开的 Microsoft Graph API 许可空白页