Office365 自定义Outlook邮件应用程序在Android和IPad中不工作

Office365 自定义Outlook邮件应用程序在Android和IPad中不工作,office365,outlook-addin,office-js,outlook-web-addins,Office365,Outlook Addin,Office Js,Outlook Web Addins,我在Office 365中为Outlook Web App开发了自定义Outlook邮件应用程序。它在浏览器中的Outlook Web App中工作正常。但当我试图在IPad和Android上从OWA应用程序运行同一个应用程序时,我遇到了一个错误 错误表明 出了点问题!我们无法启动此加载项 请提供一些参考资料,让我的应用程序也能在移动应用程序上运行。我相信iPad和Android设备与问题无关。实际上,web加载项运行时可以检测设备是平板电脑还是手机,并且可以使用不同的URL进行加载 查看您的,

我在Office 365中为Outlook Web App开发了自定义Outlook邮件应用程序。它在浏览器中的Outlook Web App中工作正常。但当我试图在IPad和Android上从OWA应用程序运行同一个应用程序时,我遇到了一个错误

错误表明

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


请提供一些参考资料,让我的应用程序也能在移动应用程序上运行。

我相信iPad和Android设备与问题无关。实际上,web加载项运行时可以检测设备是平板电脑还是手机,并且可以使用不同的URL进行加载

查看您的
,您必须具有类似的内容,并确保所有URL(如果您使用不同的URL)都提供正确的加载项

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

<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> 

280
280

我相信iPad和Android设备与问题无关。实际上,web加载项运行时可以检测设备是平板电脑还是手机,并且可以使用不同的URL进行加载

查看您的
,您必须具有类似的内容,并确保所有URL(如果您使用不同的URL)都提供正确的加载项

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

<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> 

280
280

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

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

请告诉我们您使用了哪种编程语言/IDE,您是如何测试它的,您是如何/从何处获得此错误的。事实上,你的问题没有详细说明可能会出什么问题。谢谢你的回答。请告诉我们您使用了什么样的编程语言/IDE,您是如何测试它的,您是如何/从哪里得到错误的。事实上,你的问题没有详细说明可能会出什么问题。谢谢你的回答。将用更多信息更新问题谢谢。成功了。但我必须将值设置为216Thank。成功了。但我必须将值设置为216