0

我已经为 Office 365 中的 Outlook Web App 开发了自定义 Outlook Mail App。它在浏览器中的 Outlook Web App 中运行良好。但是,当我尝试在 iPad 和 Android 中从 OWA 应用程序运行相同的应用程序时,我遇到了错误。

错误说

出问题了!我们无法启动此加载项

请提供一些参考资料,我可以从中使我的应用程序也可以在移动应用程序上运行。

4

2 回答 2

1

我相信iPad和Android设备不相关的问题。实际上,网络插件运行时可以检测设备是平板电脑还是手机,并且可能使用不同的 url 进行加载。

看看你的<FormSettings>你必须有类似的东西,并确保所有 url(如果你使用不同的)都提供正确的插件。

例如确保网页正确加载并设置Office.Initializejavascript 回调函数

<FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://localhost:44301/addinread"/>
        <RequestedHeight>280</RequestedHeight>
      </DesktopSettings>
      <TabletSettings>
        <SourceLocation DefaultValue="https://localhost:44301/addinread/tablet" />
        <RequestedHeight>280</RequestedHeight>
      </TabletSettings>
      <PhoneSettings>
        <SourceLocation DefaultValue="https://localhost:44301/addinread/phone" />
      </PhoneSettings>
    </Form>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://localhost:44301/addinwrite"/>
      </DesktopSettings>
      <TabletSettings>
        <SourceLocation DefaultValue="https://localhost:44301/addinwrite/tablet" />
      </TabletSettings>
      <PhoneSettings>
        <SourceLocation DefaultValue="https://localhost:44301/addinwrite/phone" />
      </PhoneSettings>
    </Form>
  </FormSettings> 
于 2016-10-28T15:05:52.380 回答
1

您在 SourceLocation 元素中使用的 URL 是否可以从 Internet 访问?如果您的设备通过您的提供商网络进行连接,则托管在您的 Intranet(或 localhost)内的加载项资源将无法访问,并且您会收到此错误。

于 2016-10-29T00:29:58.347 回答