我为Outlook创建了一个插件,该插件基本上可以在其中渲染网页。 在Web(所有浏览器)和Mac上的Outlook桌面应用程序上也都可以正常运行,但在Windows的Outlook桌面应用程序上则无法运行。
请在下面找到相同的manifest.xml:
<?xml version="1.0" encoding="UTF-8"?>
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="MailApp">
<Id>faf79be0-c75f-48a4-823f-67e02ca31a86</Id>
<Version>1.0.0.0</Version>
<ProviderName>Sachin Goel</ProviderName>
<DefaultLocale>en-US</DefaultLocale>
<DisplayName DefaultValue="stageAddIn 1.4" />
<Description DefaultValue="Sample staging add-in version 1.4 for integrating bot" />
<IconUrl DefaultValue="https://leena.ai/assets/img/favicon.ico" />
<HighResolutionIconUrl DefaultValue="https://leena.ai/assets/img/favicon.ico" />
<SupportUrl DefaultValue="https://leena.ai/" />
<AppDomains>
<AppDomain>https://staging-web.chatteron.io/addin/</AppDomain>
<AppDomain>http://staging-web.chatteron.io/addin/</AppDomain>
<AppDomain>AppDomain3</AppDomain>
</AppDomains>
<Hosts>
<Host Name="Mailbox" />
<Host Name="Document" />
</Hosts>
<Requirements>
<Sets>
<Set Name="Mailbox" MinVersion="1.1" />
</Sets>
</Requirements>
<FormSettings>
<Form xsi:type="ItemRead">
<DesktopSettings>
<SourceLocation DefaultValue="https://staging-web.chatteron.io/addin" />
<RequestedHeight>250</RequestedHeight>
</DesktopSettings>
</Form>
<Form xsi:type="ItemEdit">
<DesktopSettings>
<SourceLocation DefaultValue="https://staging-web.chatteron.io/addin" />
</DesktopSettings>
</Form>
</FormSettings>
<Permissions>ReadItem</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.3">
<bt:Set Name="Mailbox" />
</bt:Sets>
</Requirements>
<Hosts>
<Host xsi:type="MailHost">
<DesktopFormFactor>
<FunctionFile resid="functionFile" />
<ExtensionPoint xsi:type="MessageReadCommandSurface">
<OfficeTab id="TabDefault">
<Group id="msgReadGroup">
<Label resid="groupLabel" />
<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="messageReadTaskPaneUrl" />
</Action>
</Control>
</Group>
</OfficeTab>
</ExtensionPoint>
<ExtensionPoint xsi:type="MessageComposeCommandSurface">
<OfficeTab id="TabDefault">
<Group id="msgComposeGroup">
<Label resid="groupLabel" />
<Control xsi:type="Button" id="msgComposeOpenPaneButton">
<Label resid="paneComposeButtonLabel" />
<Supertip>
<Title resid="paneComposeSuperTipTitle" />
<Description resid="paneComposeSuperTipDescription" />
</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="messageComposeTaskPaneUrl" />
</Action>
</Control>
</Group>
</OfficeTab>
</ExtensionPoint>
</DesktopFormFactor>
</Host>
</Hosts>
<Resources>
<bt:Images>
<bt:Image id="icon16" DefaultValue="https://leena.ai/assets/img/favicon.ico" />
<bt:Image id="icon32" DefaultValue="https://leena.ai/assets/img/favicon.ico" />
<bt:Image id="icon80" DefaultValue="https://leena.ai/assets/img/favicon.ico" />
</bt:Images>
<bt:Urls>
<bt:Url id="functionFile" DefaultValue="https://demo-sales.chatteron.io/function-file/function-file.html" />
<bt:Url id="messageReadTaskPaneUrl" DefaultValue="https://staging-web.chatteron.io/addin" />
<bt:Url id="messageComposeTaskPaneUrl" DefaultValue="https://staging-web.chatteron.io/addin" />
</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="Staging Add-In" />
<bt:String id="paneReadSuperTipTitle" DefaultValue="Staging Add-In" />
<bt:String id="paneComposeButtonLabel" DefaultValue="Compose command" />
<bt:String id="paneComposeSuperTipTitle" DefaultValue="Compose command super tip" />
</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:String id="paneComposeSuperTipDescription" DefaultValue="Compose command super tip description." />
</bt:LongStrings>
</Resources>
</VersionOverrides>
</OfficeApp>
我尝试了许多解决方案,但没有运气。难道这与iframe有关,因为index.html在iframe中呈现了外部网页?