Skip to content

Webaddin - Hide plugin button only in desktop #5519

Open
@aberamdatazoic

Description

@aberamdatazoic

Issue Description:
I need to hide the webaddin plugin button on outlook app in Desktop but it should show in Mobile. By dong this, we have commented the option as mentioned in the below Manifest file but the XML becomes invalid. We have tried many options but we are not able to achieve this. Can you please let me know, if there are any options to achieve this?

Manifest file:

<?xml version="1.0" encoding="UTF-8"?>
<OfficeApp 
          xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" 
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
          xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" 
          xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides" 
          xsi:type="MailApp">

  <Id>1eba2a75-4600-4cd9-ba64-eb14725c0da9</Id>
  <Version>1.0.0.10</Version>
  <ProviderName>DZ</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Dev" />
  <Description DefaultValue="Dev Web Addin"/>
  <IconUrl DefaultValue="https://localhost/img/AppIcon96.png"/>
  <HighResolutionIconUrl DefaultValue="https://localhost/img/AppIcon96.png" />

  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.3" />
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://localhost/webaddin.html"/>
        <RequestedHeight>250</RequestedHeight>
      </DesktopSettings>
    </Form>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://localhost/webaddin.html"/>
      </DesktopSettings>
    </Form>
  </FormSettings>

  <Permissions>ReadWriteMailbox</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit" />
    <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="contacticon16" />
                    <bt:Image size="32" resid="contacticon32" />
                    <bt:Image size="80" resid="contacticon96" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="messageReadTaskPaneUrl" />
                  </Action>
                </Control>
			  </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>-->
		<MobileFormFactor>
            <FunctionFile resid="functionFile" />
            <ExtensionPoint xsi:type="MobileMessageReadCommandSurface">
                <Group id="mobileMsgRead">
                  <Label resid="groupLabel" />
                  <Control xsi:type="MobileButton" id="msgReadOpenPaneButton">
                    <Label resid="MobilepaneReadButtonLabel" />
                    <Icon xsi:type="bt:MobileIconList">
                    <bt:Image size="25" scale="1" resid="icon25" />
                    <bt:Image size="25" scale="2" resid="icon25" />
                    <bt:Image size="25" scale="3" resid="icon25" />

                    <bt:Image size="32" scale="1" resid="icon32" />
                    <bt:Image size="32" scale="2" resid="icon32" />
                    <bt:Image size="32" scale="3" resid="icon32" />

                    <bt:Image size="48" scale="1" resid="icon48" />
                    <bt:Image size="48" scale="2" resid="icon48" />
                    <bt:Image size="48" scale="3" resid="icon48" />
                  </Icon>
                    <Action xsi:type="ShowTaskpane">
                      <SourceLocation resid="messageReadTaskPaneUrl" />
                    </Action>
                  </Control>
                </Group>
            </ExtensionPoint>
          </MobileFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
		<bt:Image id="icon32" DefaultValue="https://localhost/img/AppIcon32.png"/>
        <bt:Image id="icon25" DefaultValue="https://localhost/img/AppIcon25.png"/>
        <bt:Image id="icon48" DefaultValue="https://localhost/img/AppIcon48.png"/>
        <bt:Image id="contacticon16" DefaultValue="https://localhost/img/contactIcon16.png"/>
		<bt:Image id="contacticon32" DefaultValue="https://localhost/img/contactIcon32.png"/>
		<bt:Image id="contacticon96" DefaultValue="https://localhost/img/contactIcon96.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="functionFile" DefaultValue="https://localhost/webaddin.html"/>
        <bt:Url id="messageReadTaskPaneUrl" DefaultValue="https://localhost/webaddin.html"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="groupLabel" DefaultValue="Dev"/>
		<bt:String id="MobilepaneReadButtonLabel" DefaultValue="Dev"/>
        <bt:String id="paneReadButtonLabel" DefaultValue="View Contact"/>
        <bt:String id="paneReadSuperTipTitle" DefaultValue="View Contact"/>
      </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:LongStrings>
    </Resources>
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
      <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="contacticon16" />
                    <bt:Image size="32" resid="contacticon32" />
                    <bt:Image size="80" resid="contacticon96" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="messageReadTaskPaneUrl" />
                    <SupportsPinning>true</SupportsPinning>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
          </DesktopFormFactor>-->
		  <MobileFormFactor>
            <FunctionFile resid="functionFile" />
            <ExtensionPoint xsi:type="MobileMessageReadCommandSurface">
                <Group id="mobileMsgRead">
                  <Label resid="groupLabel" />
                  <Control xsi:type="MobileButton" id="msgReadOpenPaneButton">
                    <Label resid="MobilepaneReadButtonLabel" />
                    <Icon xsi:type="bt:MobileIconList">
                    <bt:Image size="25" scale="1" resid="icon25" />
                    <bt:Image size="25" scale="2" resid="icon25" />
                    <bt:Image size="25" scale="3" resid="icon25" />

                    <bt:Image size="32" scale="1" resid="icon32" />
                    <bt:Image size="32" scale="2" resid="icon32" />
                    <bt:Image size="32" scale="3" resid="icon32" />

                    <bt:Image size="48" scale="1" resid="icon48" />
                    <bt:Image size="48" scale="2" resid="icon48" />
                    <bt:Image size="48" scale="3" resid="icon48" />
                  </Icon>
                    <Action xsi:type="ShowTaskpane">
                      <SourceLocation resid="messageReadTaskPaneUrl" />
                    </Action>
                  </Control>
                </Group>
            </ExtensionPoint>
          </MobileFormFactor>
         </Host>
       </Hosts>
    <Resources>
      <bt:Images>
        <bt:Image id="icon32" DefaultValue="https://localhost/img/AppIcon32.png"/>
        <bt:Image id="icon25" DefaultValue="https://localhost/img/AppIcon25.png"/>
        <bt:Image id="icon48" DefaultValue="https://localhost/img/AppIcon48.png"/>
		<bt:Image id="contacticon16" DefaultValue="https://localhost/img/contactIcon16.png"/>
		<bt:Image id="contacticon32" DefaultValue="https://localhost/img/contactIcon32.png"/>
		<bt:Image id="contacticon96" DefaultValue="https://localhost/img/contactIcon96.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="functionFile" DefaultValue="https://localhost/webaddin.html"/>
        <bt:Url id="messageReadTaskPaneUrl" DefaultValue="https://localhost/webaddin.html"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="groupLabel" DefaultValue="Dev"/>
        <bt:String id="MobilepaneReadButtonLabel" DefaultValue="Dev"/>
        <bt:String id="paneReadButtonLabel" DefaultValue="View Contact"/>
        <bt:String id="paneReadSuperTipTitle" DefaultValue="View Contact"/>
      </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:LongStrings>
    </Resources>
    </VersionOverrides>    
  </VersionOverrides>
</OfficeApp>

Platform where the change required: Webaddin > Desktop > Outlook APP

Metadata

Metadata

Assignees

Labels

Area: OutlookIssue related to Outlook add-insNeeds: attention 👋Waiting on Microsoft to provide feedback

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions