Bug 25332

Summary: Add library card to smart phone wallet
Product: Koha Reporter: Christopher Brannon <cbrannon>
Component: OPACAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: dcook, ddaghita, martin.renvoize, sally.healey
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Christopher Brannon 2020-04-30 16:33:20 UTC
I know there are apps one can get to mimic the barcode, but I am wondering if there is any way to add a link to the patron info screen in the opac that would add the patron's card to their iPhone wallet?  I'm seeing more options these days for this.  Reward cards are starting to migrate to this storage.
Comment 1 Christopher Brannon 2020-04-30 16:38:18 UTC
Here's an interesting article that might help inspire:

https://www.howtogeek.com/286620/how-to-add-any-card-to-the-iphone-wallet-app-even-if-it-isnt-supported-by-apple/
Comment 2 Owen Leonard 2020-05-01 14:07:04 UTC
The article describe a workaround that an individual might use. I don't think it gives any insight into how it could be accomplished on our end.

I'm pretty sure you'd have to have an app installed on the iPhone which would interface with the OS's wallet system. Perhaps someone with some app development experience could confirm.
Comment 3 David Cook 2023-05-17 00:36:53 UTC
(In reply to Owen Leonard from comment #2)
> I'm pretty sure you'd have to have an app installed on the iPhone which
> would interface with the OS's wallet system. Perhaps someone with some app
> development experience could confirm.

You don't need an app to add to the Apple Wallet. Servers send cryptographically signed compressed packages to the user who can add the package to their phone's wallet as a pass.

The tricky bit with Apple is that the signature needs to be done using a key from an Apple developer account. I don't think we'd want to do this at a community level; I think it would need to be done at an institutional/organisational level.
Comment 4 David Cook 2023-05-17 00:37:14 UTC
For the Google Wallet, Martin provided the following link: https://codelabs.developers.google.com/add-to-wallet-android#0

I haven't reviewed it though.
Comment 5 David Cook 2023-05-17 01:10:38 UTC
Looks like the Apple Developer program costs at least 99 USD, although a library might be able to get a fee waiver...

https://help.passkit.com/en/articles/2010098-why-do-i-need-an-apple-developer-account
Comment 6 David Cook 2023-05-17 01:11:25 UTC
Note that this could be an interesting Koha plugin.
Comment 7 Martin Renvoize (ashimema) 2023-09-07 14:25:02 UTC
https://developers.google.com/wallet/generic