自定义 Outlook 邮件应用程序无法在 Android 和 IPad 中运行
Custom Outlook Mail App not working in Android and IPad
我在 Office 365 中为 Outlook Web App 开发了自定义 Outlook 邮件应用程序。它在浏览器中的 Outlook Web App 中运行良好。但是,当我在 IPad 和 Android 中尝试从 OWA 应用程序 运行 相同的应用程序时,我遇到了一个错误。
错误说
Something went wrong! We couldn't start this add-ins
请提供一些参考资料,我可以从中使我的应用程序也能在移动应用程序中运行。
我认为设备 iPad 和 Android 与问题无关。实际上,网络插件运行时可以检测设备是平板电脑还是 phone,并且可以使用不同的 url 进行加载。
看看你的 <FormSettings>
你一定有类似的东西,并确保所有 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>
您在 SourceLocation 元素中使用的 URL 是否可以从 Internet 访问?如果您的设备通过您的提供商网络连接,则无法访问您的 Intranet(或本地主机)中托管的加载项资源,并且您会收到此错误。
我在 Office 365 中为 Outlook Web App 开发了自定义 Outlook 邮件应用程序。它在浏览器中的 Outlook Web App 中运行良好。但是,当我在 IPad 和 Android 中尝试从 OWA 应用程序 运行 相同的应用程序时,我遇到了一个错误。
错误说
Something went wrong! We couldn't start this add-ins
请提供一些参考资料,我可以从中使我的应用程序也能在移动应用程序中运行。
我认为设备 iPad 和 Android 与问题无关。实际上,网络插件运行时可以检测设备是平板电脑还是 phone,并且可以使用不同的 url 进行加载。
看看你的 <FormSettings>
你一定有类似的东西,并确保所有 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>
您在 SourceLocation 元素中使用的 URL 是否可以从 Internet 访问?如果您的设备通过您的提供商网络连接,则无法访问您的 Intranet(或本地主机)中托管的加载项资源,并且您会收到此错误。