Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Rafaelki opened this issue Nov 26, 2021 · 19 comments
Assignees
Labels
area:ACE Issues around Adaptive Card Extensions area:ACE-Mobile area:docs-comment Category: Comment left on bottom of a docs page here: https://docs.microsoft.com/sharepoint/dev area:spfx Category: SharePoint Framework (not extensions related) Needs: Attention 👋 Original poster responded to request for feedback, awaiting attention from Microsoft / community.

Comments

@Rafaelki
Copy link

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.

@ghost
Copy link

ghost commented Nov 26, 2021

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

@ghost ghost added Needs: Triage 🔍 Awaiting categorization and initial review. area:docs-comment Category: Comment left on bottom of a docs page here: https://docs.microsoft.com/sharepoint/dev labels Nov 26, 2021
@VesaJuvonen VesaJuvonen added area:spfx Category: SharePoint Framework (not extensions related) and removed Needs: Triage 🔍 Awaiting categorization and initial review. labels Nov 26, 2021
@patmill
Copy link
Contributor

patmill commented Nov 29, 2021

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

@patmill patmill added the Needs: Author Feedback Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days. label Nov 29, 2021
@Rafaelki
Copy link
Author

Rafaelki commented Dec 2, 2021

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

@ghost ghost added Needs: Attention 👋 Original poster responded to request for feedback, awaiting attention from Microsoft / community. and removed Needs: Author Feedback Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days. labels Dec 2, 2021
@patmill patmill added the area:ACE Issues around Adaptive Card Extensions label Jan 4, 2022
@PooLP
Copy link

PooLP commented Jan 30, 2022

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.

@Mikhail2k15
Copy link

@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.

@Zaidos9
Copy link

Zaidos9 commented Feb 24, 2022

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

@PooLP
Copy link

PooLP commented Apr 14, 2022

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 ?

@anoopt
Copy link

anoopt commented Apr 14, 2022

@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 :) )

@PooLP
Copy link

PooLP commented Apr 14, 2022

ok, sorry.
I commented a little quickly and angry. The lack of responsiveness and transparency for resolving bugs is getting heavy. (ex : #6477)

@AJIXuMuK
Copy link
Collaborator

@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.

@PooLP
Copy link

PooLP commented Apr 15, 2022

@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
Copy link

PooLP commented May 25, 2022

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

@johnguy0
Copy link
Collaborator

johnguy0 commented Aug 1, 2022

@Zaidos9 Can you provide an update?

@alexc-MSFT
Copy link

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

@PooLP
Copy link

PooLP commented Jan 12, 2023

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

@frags51
Copy link

frags51 commented May 23, 2023

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

@PooLP
Copy link

PooLP commented May 23, 2023

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
Copy link

PooLP commented May 23, 2023

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

@ghost
Copy link

ghost commented May 30, 2023

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 ghost locked as resolved and limited conversation to collaborators May 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area:ACE Issues around Adaptive Card Extensions area:ACE-Mobile area:docs-comment Category: Comment left on bottom of a docs page here: https://docs.microsoft.com/sharepoint/dev area:spfx Category: SharePoint Framework (not extensions related) Needs: Attention 👋 Original poster responded to request for feedback, awaiting attention from Microsoft / community.
Projects
None yet
Development

No branches or pull requests