android 谷歌钱包NFC通行证

aiqt4smr  于 2023-10-14  发布在  Android
关注(0)|答案(1)|浏览(195)

我有麻烦添加NFC通行证到谷歌钱包。我已经成功地添加了QR码的正常通行证,但当想要启用smartTap它不会工作。我已经在Google钱包控制台中启用了SmartTap。
当IM添加NFC通行证,它显示NFC的图标,这是一个NFC卡,但当选择它在谷歌钱包使用,它不显示NFC指示器扫描.

let genericObject = {
    id: `${objectId}`,
    classId: `${issuerId}.${classSuffix}`,
    genericType: "GENERIC_TYPE_UNSPECIFIED",
    hexBackgroundColor: "#4285f4",
    logo: {
        sourceUri: {
            uri: "https://storage.googleapis.com/wallet-lab-tools-codelab-artifacts-public/pass_google_logo.jpg",
        },
    },
    cardTitle: {
        defaultValue: {
            language: "en-US",
            value: "test Card",
        },
    },
    subheader: {
        defaultValue: {
            language: "en-US",
            value: "EMPLOYEE",
        },
    },
    header: {
        defaultValue: {
            language: "en-US",
            value: "Pero Peric",
        },
    },
    barcode: {
        type: "QR_CODE",
        value: `${objectId}`,
    },
    smartTapRedemptionValue: "test",
    heroImage: {
        sourceUri: {
            uri: "https://storage.googleapis.com/wallet-lab-tools-codelab-artifacts-public/google-io-hero-demo-only.jpg",
        },
    },
    textModulesData: [
        {
            header: "COMPANY",
            body: "test plus d.o.o.",
            id: "points",
        },
        {
            header: "JOB TITLE",
            body: "Head of department",
            id: "contacts",
        },
    ],
};

pass when adding to Wallet
pass when selected from wallet
Im adding pass via JWTToken from android app:

walletClient.savePassesJwt(token, this, addToGoogleWalletRequestCode)

我想为通用通行证添加NFC功能

wlp8pajw

wlp8pajw1#

我也有同样的问题。你唯一需要做的就是通过控制台:

  • 从Wallet API控制台复制您的“Issuer Id”
  • 打开要更新的类对象
  • 编辑“赎回发行人”
  • 添加您的“发行者ID”并保存

相关问题