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

Adaptive Card template support in ACE cards

Open AsishP opened this issue 5 years ago • 3 comments

Target SharePoint environment

other (enter in the "Additional environment details" area below)

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

No response

What browser(s) / client(s) have you tested

  • [ ] 💥 Internet Explorer
  • [ ] 💥 Microsoft Edge
  • [ ] 💥 Google Chrome
  • [ ] 💥 FireFox
  • [ ] 💥 Safari
  • [X] mobile (iOS/iPadOS)
  • [X] mobile (Android)
  • [ ] not applicable
  • [ ] other (enter in the "Additional environment details" area below)

Additional environment details

Teams Mobile App - iOS and Android (latest versions)

Describe the bug / error

Adaptive card JSON template on ACE initial card view, doesn't seem to work when on Mobile App (not the quick view). Screenshot attached, Seems like the JSON parsing doesn't work on Viva Connections Mobile App. Is it possible to support that? 2021-10-14 09_35_54-VivaConnectionsMobileAppIssue

Steps to reproduce

  1. Create a ACE card for Viva Connections
  2. Override the get Template() method in CardView.ts to return a Adaptive card template json as below. Please add some dynamic values replacement in Adaptive Card json to see the issue public get template(): ISPFxAdaptiveCard { return require('./template.json'); }
  3. Publish and add the card to Viva Connection dashboard
  4. View it in MS team mobile app on iOS or Android

Expected behavior

Expecting to see the card view with data as shown in the browser view or the Teams desktop version (Screenshot below) 2021-10-14 09_35_54-VivaConnectionsDesktop .

AsishP avatar Oct 13 '21 22:10 AsishP

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

ghost avatar Oct 13 '21 22:10 ghost

@AsishP This is not supported. Card views must inherit from one of the base card view classes and cannot override their template methods.

Card views

johnguy0 avatar Oct 14 '21 17:10 johnguy0

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 Nov 03 '21 06:11 ghost