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

Points and Contacts in cardTemplateOverride not visible #19

Open
JulianAtTheFrontend opened this issue Sep 20, 2023 · 4 comments
Open

Comments

@JulianAtTheFrontend
Copy link

Following the documentation creating a pass works but the additional text fields are missing (points and contacts) on the pass. Instead the texts are shown on "the back" of the pass e.g. when you open the details page.

I also can't see what the textModulesData { 'header': 'Gather points meeting new people at Google I/O', 'body': 'Join the game and accumulate points in this badge by meeting other attendees in the event.', 'id': 'game_overview' } is about.

@lukelyyeung
Copy link

lukelyyeung commented Oct 6, 2023

@JulianAtTheFrontend
Try change the double quote in the fieldPath to single quote

'object.textModulesData["points"]' to "object.textModulesData['points']"

For textModulesData, they are displayed in the detail page if you update the fieldPath in detailsTemplateOverride to use single quote inside [] as well

@Sharpienero
Copy link

Sharpienero commented Nov 1, 2023

@JulianAtTheFrontend Try change the double quote in the fieldPath to single quote

'object.textModulesData["points"]' to "object.textModulesData['points']"

For textModulesData, they are displayed in the detail page if you update the fieldPath in detailsTemplateOverride to use single quote inside [] as well

This doesn't work. The demo is broken, and it's extremely frustrating trying to troubleshoot with the god awful documentation that google has provided regarding these passes. Any other recommendations?

@JulianAtTheFrontend - Did you ever figure this out?

@lukelyyeung
Copy link

@Sharpienero
Could you try with my fork ?

https://github.com/lukelyyeung/web-codelab/tree/fix/use_single_quote_in_fieldPath

It should be working as I just launched the related feature last month

@tomastan
Copy link

@Sharpienero Could you try with my fork ?

https://github.com/lukelyyeung/web-codelab/tree/fix/use_single_quote_in_fieldPath

It should be working as I just launched the related feature last month

Changing quotes does not help.

I have similar issue in PHP examples, so tried to take codelab as a proven template to be sure. Unfortunately the issue is the same, so have a feeling a problem is on https://walletobjects.googleapis.com/walletobjects/v1 web-service side.

But it should work somehow for thousands of others (Unless they don't use generic type). No?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants