简体   繁体   中英

Add-In is not loading on Outlook Desktop application on Windows

I have created an addon for outlook that basically renders a web page in it. It is working fine on web (all browsers) and outlook desktop app on mac too but it is not working on outlook desktop application for windows.

Please, find the manifest.xml below for the same:

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

I have tried many solutions but no luck. Could this be related to iframes as index.html renders the external web page in an iframe?

Did you add the add-in into the your Outlook account? In the picture I signed the button for managing add-ins.

Here is an image that I talk about.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM