Awesome Open Source
Awesome Open Source

📣 appleshouter

iOS notifications for PWAs and Web apps

Do you have a web app or PWA that uses Web Push Notifications?

You might have figured out that Safari on iOS STILL has no support for the Web Push API.

So what to do now?

You might have considered making a web wrapper around your app just to get notifications working on iOS.

Not only do you now have an extra codebase to maintain but your app might also not pass the review to get into the App Store.


For a long time Apple Wallet has provided an API to create passes, be it coupons, boarding passes or event tickets.

The great thing about those is that you don't need to pass a review to create them and you can distribute them as files!

But what does that have got to do with Notifications?

The interesting thing about those passes is that Apple provides a way to send Push Notifications when the passes get updated.

This is done so you can e.g. get notified when your flight gets cancelled/delayed.

This allows for a workaround for the above problem. What we want to do is this:

  • Generate a pass for each of your users
  • That pass has a single field that contains your notification text.
  • When you want to send a notification to your users you simply update that field and your users receive a push notification!


  • The phone doesn't seem to vibrate when it receives wallet notifications.
  • There can only be one notification at a time(they don't stack).
  • Once clicked, the notification will go to your Pass in the Wallet app instead of your app.

appleshouter makes this really easy


What you will need:

  • An Apple Developer Program account
  • NodeJS >= 14


  1. Copy over the default config directory provided in the repo:
cp -R data.example data
  1. Get the Apple Certificates and Pass Type Identifier

You will need to get certificates so you can Generate and sign the passes.

The Passes also need to contain an identifier which you can define in the Apple Dev Console.

We will need two files: signerCert.pem (Certificate) and signerKey.pem (Key)

Follow the guide here to get those (Note: we don't need the AppleWWDRCA cert as that's provided in this repo):

Once you've gotten those two files, place them into the data/certs/ directory.

Also keep that Identifier handy because we will need that later.


they need to be called exactly those filenames: signerCert.pem and SignerKey.pem otherwise our script won't find them.

  1. Get an iOS APNs Auth Key

You will need to get an Auth key to send Push notifications.

Follow the guide here

Download the key and save it as authkey.p8 under data/certs, again important that the file is called exactly that!

Also keep the Key ID handy for the next step.

  1. The config.json file Under data/config.json lies the config file. All the fields below are required.
  "SECRET": "This should be a random secret string that you choose/generate yourself.",
  "appleCredentials": {
    "APPLE_AUTH_KEY_ID": "The key ID from step 3",
    "TEAM_IDENTIFIER": "Team ID, you can find it here",
    "PASS_TYPE_IDENTIFIER": "The identifier from step 2",
    "SIGNER_KEY_PASSPHRASE": "password for the key generated in step 2, just put null if you didn't choose a password"
  1. Run the server
npm install
npm start

Server should be running under port 5000 by default.

You should run it under a reverse proxy with HTTPS such as Caddy(recommend) or nginx.


  1. Downloading the Pass

You will first need to generate a URL using the secret you chose in the settings.

This should be called by your backend as we don't want your users to know your precious secret!

> curl  -H 'authorization: Token YOUR_SECRET_TOKEN'
{"url": ""}

You can then pass the URL returned over to the user pertaining to the USER_ID

  1. Sending notifications to the Pass

Again this should be done by your backend.

> curl --header "Content-Type: application/json" --request POST --data '{"text":"hello world"}' -H 'authorization: Token YOUR_SECRET_TOKEN'

Customizing the Pass

You can change the icon under data/ as well as the color parameters in the config.json

Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Javascript (1,075,984
Apple (8,311
Push Notifications (1,805
Workaround (932
Apns (653
Notification Service (331
Webpush (173
Apple Wallet (19