我有麻烦添加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功能
1条答案
按热度按时间wlp8pajw1#
我也有同样的问题。你唯一需要做的就是通过控制台: