Lurker News
I got my Apple developer certificate and built a simple app to solve a problem I had. One shop I buy from doesn't have Apple Wallet passes. Since you need signed certificates to build these very simple things, I created a minimal app that signs them. It's available if you need it too. It won't scan cards with AI - you manually enter the barcode, which I think makes it less prone to error.

Comments (115) 40 threads

thwarted3 replies#
> It won't scan cards with AI - you manually enter the barcode, which I think makes it less prone to error.

This is a very interesting sentence.
I interpret this sentence as saying that manually entering a barcode is less error prone than letting AI do it, that AI would have an unacceptable margin of error (and this is probably an accurate assessment).
But you don't need AI to find or read barcodes. Finding and reading barcodes is a reasonably mature technology that has existed long before AI.
Barcodes exist as a fast, machine readable data transfer format meant to avoid data entry errors by avoiding manual data entry, and yet you've implemented manual entry in order to avoid errors?
Now, if one of the constraints you've put on your implementation is that it work only in the browser and you don't want to have to download a large barcode scanning library to the browser, then it makes sense to implement manual entry. But that has nothing to do with AI.
That being said, there are some barcode reading apps that can be used to prompt for a scan from a web page, and you get the barcode payload back. I've used an app called "bineye" on Android (source on GitHub) that works like this. This helps avoid error prone manual entry and gets the full barcode payload (many barcodes store/encode more information than the human readable text printed next to them).

alentodorov4 replies#
i should've been clearer: while browsing i found multiple apps that do this. most use AI to extract data from images and are much more feature-rich - you can photo your boarding pass and it goes straight to wallet. however, i noticed that AI sometimes gets details wrong. for example, when i uploaded just a barcode image, it couldn't create the pass because the model also wanted a "name" field.
Moto7451#
When I’ve done similar things in the past I found there was always a library for barcode/QR use cases before such things ended up being built into the OS/Framework I’m in.

https://serratus.github.io/quaggaJS/ seems browser friendly?
Generally I agree with your point on AI fuzziness here not being useful.

dmd1 reply#
Could you add Codabar?

edit: oh, I guess you can't, because Apple Wallet doesn't support it.

alentodorov2 replies#
i think there's a way but it's hacky. instead of using the barcode property it would add an image based on your inputted codabar.

Continue this thread — 2 replies

carlosjobim#
Millions of barcodes are scanned every second, and has been for the past few decades. So it seems very strange that there aren't any solution readily able for your app, which isn't AI.

I have to scan bar codes every once in a while with an app on my iPhone, which definitely doesn't use AI. It will instantly recognize a bar code before I've had a chance to line up the camera properly, and the error rate is zero.

mcintyre1994#
Ironically if I needed to manually copy the text from a barcode on my phone, I'd take a photo and use Apple's AI to select and copy the text from it.
mattmaroon#
I guess we found the inverse of the trend to shove “AI” in everything, deliberately leaving AI out of something that wouldn’t have even thought to involve it in the first place
Jeremy10262 replies#
It'd be awesome if you could add a location to the pass. Apple allows a pass to automatically pop up on the screen based on the device location[1]. If you make it so the user could pick the point on a map for the pass to pop up at it'd be great. That way for example, if you're at the grocery store, your custom pass could be on your lock screen ready for you.

[1] https://developer.apple.com/documentation/walletpasses/pass/...

loremm#
ooh so nice
rovr1381 reply#
Very interesting, and you can define multiple already,

https://developer.apple.com/documentation/walletpasses/showi...,

    {
    ...


    "locations" : [
        {"latitude" : 37.3229, "longitude" : -122.0323},
        {"latitude" : 37.3286, "longitude" : -122.0143},
        {
            "altitude" : 10.0,
            "latitude" : 37.331,
            "longitude" : -122.029,
            "relevantText" : "Store nearby on 3rd and Main."
        }
    ],
    "relevantDate" : "2014-12-05T09:00-08:00"
    }
ccorcos#
This is awesome. Can I do this myself? Or does this need to be implemented in their backend?
yoan92243 replies#
This is genuinely useful. I have so many loyalty cards that exist only as physical barcodes that stores refuse to look up by phone number.

The privacy concern about sending pass data to the server is valid though. Since .pkpass files need to be cryptographically signed with Apple's certificate, there's no way to generate them purely client-side.
Potential solution: open source the signing code and let users run it locally with their own Apple Developer account ($99/year). Power users would do this, casual users can use your hosted version.
Also works with Google Wallet apparently, which is great for Android users.

jbverschoor2 replies#
For loyaltycards there was Stocard, but it got acquired by the toxic company Klarna.

SuperCards is very very similar, and in my opinion more useful than putting everything in Apple Wallet. You get to store a pictures, and everything is in one place. Apple Wallet is already cluttered with tons of creditcards, tickets, etc

DrewADesign1 reply#
Weird thing from the pretty ho-hum super cards privacy policy:

> The Service Provider will retain User Provided data for as long as you use the Application and for a reasonable time thereafter. If you'd like them to delete User Provided Data that you have provided via the Application, please contact them at blub@blob.com and they will respond in a reasonable time.
That looks like a placeholder address to me? Not exactly confidence inspiring if so…

Continue this thread — 1 reply

jonathanlydall1 reply#
I’m so pissed off with Klarna obsoleting Stocard as the Klarna app is missing one of the best features of Stocard, that you could add loyalty cards to Apple Wallet.

To be honest though, a micro loans company engaging in this behaviour doesn’t surprise me at all.

jbverschoor#
Use super cards, add them to the widgets on leftmost screen where weather is. Remove your Klara account
monerozcash#
>Since .pkpass files need to be cryptographically signed with Apple's certificate, there's no way to generate them purely client-side.

Technically you could use blind signing, no?

jetofff#
Google Wallet can do this natively
gorgoiler1 reply#
Brilliant! Suggestion: most store cards get scanned as a bar code 99% of the time but when calling them they will want you to quote your membership number over the phone. It would be useful to have it printed below the barcode so I can quote it directly from my Apple wallet.
2dvisio#
I solved this same problem adding a label with the number corresponding to the barcode number alongside

Load more comments