George Shalvashvili
George Shalvashvili

Reputation: 1569

Detect if .pkpass is already added to Google Wallet

I have an app which offers users to add a pass into their Google Wallet using a banner on home screen. There is a requirement that when user adds this pass to the wallet then the app should hide this banner.

I cant find an API that would let me check if a specific .pkpass already exists in user's wallet. Can you guys help? maybe there is a library that can do it?

Upvotes: 0

Views: 1507

Answers (1)

TylerGH
TylerGH

Reputation: 1

Google Wallet passes are JSON files, not PKPASS.

But you can perform a GET request, and then generate a ViGW button with the pass link attached.

https://developers.google.com/wallet/generic/rest/v1/genericclass/get#http-request

Link template: https://pay.google.com/gp/v/object/{<issuerId>}.{<objectId>}

Upvotes: 0

Related Questions