sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

SVG images are not working in the QuickView card in Viva Connections Mobile (Teams app)

Open Rafaelki opened this issue 2 years ago • 13 comments

The SVG images are being loaded correctly in the dashboard when using the desktop browser. They also work in the the dashboard in Teams app on the phone except when they are placed in the QuickView.

DESKTOP: image

MOBILE: image

CODE SAMPLE:

{
 type: "Column",
 width: "auto",
 items: [
   {
     type: "ActionSet",
     actions: [
       {
         type: "Action.Submit",
         iconUrl: require('../assets/ArrowIcon.svg'), //NOT working in Teams
         title: strings.ViewButton,
         style: "positive",
       }
     ]
   }
 ]
}

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Rafaelki avatar Nov 26 '21 14:11 Rafaelki

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Nov 26 '21 14:11 ghost

Thanks @Rafaelki - looking into this. One question - do you have the public CDN enabled in your tenant?

patmill avatar Nov 29 '21 19:11 patmill

Thank you @patmill . No, I don't have the CDN enabled in my tenant

Rafaelki avatar Dec 02 '21 14:12 Rafaelki

I have the same problem with a different implementation of SVG :

public get data(): IImageCardParameters {

const image = `data:image/svg+xml;utf8,
      <svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' width='100%' height='100%'>
        <g>
        <circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" />
        </g>
      </svg>`;

const icon = `data:image/svg+xml;utf8,
      <svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' width='100%' height='100%'>
        <g>
        <circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" />
        </g>
      </svg>`;

    return {
      primaryText: 'primary text',
      title: 'Shortcuts',
      imageUrl: image,
      iconProperty: icon
    };
  }

it's work in web browser and desktop app, but not in mobile app.

PooLP avatar Jan 30 '22 12:01 PooLP

@patmill looks like svg images are not working at all on iOS on Card View, Quick View. It doesn't matter whether it base64 embedded image or not.

Mikhail2k15 avatar Feb 20 '22 13:02 Mikhail2k15

Full SVG support on mobile is in backlog and we are working on it. Please expect the next update in April.

Zaidos9 avatar Feb 24 '22 08:02 Zaidos9

Hi @Zaidos9 , any news for this ? I have tested today, and the ACE with SVG do not appear anymore for me. Why @anoopt have closed this unresolved bug ?

PooLP avatar Apr 14 '22 09:04 PooLP

@PooLP - this issue is still open.

Whereas a related issue - Viva Connections - Multiple issue with images in Microsoft Teams is closed by Microsoft (not by me :) )

anoopt avatar Apr 14 '22 09:04 anoopt

ok, sorry. I commented a little quickly and angry. The lack of responsiveness and transparency for resolving bugs is getting heavy. (ex : https://github.com/SharePoint/sp-dev-docs/issues/6477)

PooLP avatar Apr 14 '22 09:04 PooLP

@PooLP - I'm really sorry some issues are stuck for a long time. We're doing our best to triage and update the issues regularly. But some of them may be cross-team/cross-org. And that leads to a longer investigation/fix process. We could reply "we're still looking into it" but I don't think it'll make the life easier.

AJIXuMuK avatar Apr 14 '22 16:04 AJIXuMuK

@AJIXuMuK, you don't need to apologize, MS engineers like you are also in an unpleasant position, but Microsoft will have to understand that it is annoying that a bug detected and checked can take several months or even years to be resolved and that the lack of communication does not help.

PooLP avatar Apr 15 '22 06:04 PooLP

@Zaidos9 @AJIXuMuK any news ? it's not resolved for me.

PooLP avatar May 25 '22 12:05 PooLP

@Zaidos9 Can you provide an update?

johnguy0 avatar Aug 01 '22 22:08 johnguy0

Any update on this issue please? I have Card Designer card with an SVG in the quick view which will not render on the mobile dashboard (iOS). Looks like it's been at least 6 months with no update. Is this support coming?

Thanks

alexc-MSFT avatar Jan 12 '23 10:01 alexc-MSFT

SVG, Fluent UI icon, UI/IX bug on mobile ... MS is slow or incompetent (both ^^)

PooLP avatar Jan 12 '23 11:01 PooLP

@alexc-MSFT @anoopt @PooLP - This issue should have been fixed now. Could you please confirm if you are still seeing this behavior?

frags51 avatar May 23 '23 05:05 frags51

Hi, After fast test, SVG image (link) work, but the base64 didn't work.

I will update my project to SPFx 1.17.2 to see if that fixes the problem.

PooLP avatar May 23 '23 07:05 PooLP

it's ok for me after update to SPFx 1.17.2 !

PooLP avatar May 23 '23 09:05 PooLP

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

ghost avatar May 30 '23 18:05 ghost