Push notifications
Updated October 15, 2026
Your app can ask people to allow notifications. Then you can message everyone who said yes, a channel they joined, or specific people, from your app's Notifications tab or from your own backend. iPhones need a push key from Apple. Android phones need a key from a Firebase project of your own.
1. Turn it on
- In your app's Settings → Native features, turn on Push notifications.
- Under Ask, choose when the app asks:
- On the second launch. People see what your app does first. This is the default.
- On the first launch.
- Only when my app asks. Your app's own code calls
window.StoreReady.push.ask(), for example right after someone places an order.
- To change its words, open Customize the prompt and write the Title and the Text of the sheet the app shows. It has two buttons, Not now and Turn on, and comes before the phone's own prompt.
<app name>in the text becomes your app's name. - Press Save.
Someone who taps Not now is asked again after 14 days, at most twice.
2. iPhones: your APNs key
About 2 minutes. One key works for every app on your Apple team, so you add it once.
- Open developer.apple.com/account and sign in as the Account Holder or an Admin of your team.
- Go to Certificates, Identifiers & Profiles, then Keys.
- Click the + button. Name the key
StoreReady Pushand tick Apple Push Notifications service (APNs). - If Apple asks you to configure it, choose Sandbox & Production for the environment and Team Scoped (All Topics), so the key works for all your apps. Save.
- Click Continue, then Register.
- Click Download. The file is named
AuthKey_followed by the Key ID and ends in .p8. Apple lets you download it only once, so keep it safe. - In StoreReady, open your app's Settings → Stores. Next to Push key (APNs), press Add key. Choose the file in Key file (.p8). The Key ID fills in from the file name when it still has it. Press Save key.
The row says Connect Apple first? Connect your Apple account in the same place first. See Publishing to the App Store.
3. Android: your Firebase key
About 3 minutes. Android phones get notifications through Google's Firebase, in a Firebase project of your own, so your subscribers stay yours. Google doesn't charge for notifications.
- Open the Firebase console and sign in with your Google account.
- Click Create a project. Name it after your app and continue. When it asks about Google Analytics, turn it off, then click Create project. Wait for "Your new project is ready" and click Continue.
- Click the gear next to Project Overview (top left), then Project settings.
- Open the Service accounts tab.
- Click Generate new private key, then Generate key. A .json file downloads.
- In StoreReady, open your app's Settings → Stores. Next to Push key (Firebase), press Add key. Choose the file in Key file (.json) and press Save key. We check it with Google and add your app to the project for you.
The row says Set the App ID first? Your app needs its App ID before Firebase can know it. Pick one in setup step 3.
You can use one Firebase project for several of your apps.
4. Build again
Notifications go into your next build. Start a new build. Phones that install it and say yes can get your messages.
5. Send from the Notifications tab
Open your app's Notifications tab. Under Send a notification:
- Under Who gets it, pick Everyone, A channel (its name, like
news) or Specific people (their user ids, separated by commas). - Write a Title (up to 60 characters) and a Message (up to 240).
- To open a page of your app on tap, fill in On tap, open with its path, like
/shop. Without it, the tap just opens the app. - Press Send to … devices, or Send for a channel or specific people.
Devices shows how many iPhones and Android phones said yes. Sent notifications shows who each message went to and how many devices got it, marked via API when your backend sent it.
6. Send from your backend
- On the Notifications tab, under Send from your backend, press New key. Name it after where it is used, like
Production server, and press Create. - Copy the key right away. It starts with
sk_and is shown only once. - Send it with a POST request from your server:
curl https://storeready.app/api/v1/push \
-H "Authorization: Bearer sk_your_key" \
-H "Content-Type: application/json" \
-d '{"to": "all", "title": "Order shipped", "body": "Arrives on Thursday", "open": "/orders"}'
tois"all",{"channel": "news"}or{"users": ["u_123"]}.titleis up to 60 characters andbodyup to 240.openis a page inside your app. Optional.datais a flat object of up to 1 KB that your app receives with the notification. Optional.
A request that went through answers 202 with the notification's id and how many devices it is going to. 401 means the key is wrong or revoked, 400 means the request is malformed or nobody can get it yet, and 429 means a daily limit is reached.
Each app can have up to 5 keys. Revoke one you no longer use, and anything still sending with it gets an error from then on.
7. In your app's code
Builds made from October 15, 2026 have these in window.StoreReady.push:
identify('u_123', { channels: ['orders'] })tells StoreReady who is signed in, so your backend can reach them by user id. Callidentify(null)when they sign out.subscribe('news')andunsubscribe('news')join and leave a channel.status()answers'granted','denied'or'prompt'.ask()shows the prompt, for apps set to Only when my app asks.
When a notification arrives or is tapped, the page gets a storeready:push event. Its detail has title, body, url, data and tapped.
Limits
Each app can send up to 30 notifications to everyone and 2,000 notifications in total a day.
If something goes wrong
- "Apple did not accept this key." Check the Key ID, and that the key belongs to the same team as your App Store connection. A key made a minute ago can take a few minutes to start working.
- No Keys page or no + button at Apple. Only the Account Holder or an Admin can create keys.
- "Key creation is not allowed." Your Google account belongs to a company whose admin blocks keys. Create the Firebase project with a personal Google account, or ask your admin.
- "Firebase did not let us add the app." On the Project Overview page in Firebase, click Add app, choose Android, paste the package name StoreReady shows you and click Register app. Skip the remaining steps, then upload the key again.
- The Notifications tab says "Push notifications are off for this app". Press Open settings and do step 1.
- "iPhones won't get anything…" or "Android phones won't get anything…" That key is missing. Add it in Settings → Stores (steps 2 and 3).
Keep your keys safe
The .p8 and .json files and your sk_ keys work like passwords. Don't share them or put them in your app's code: an sk_ key belongs on your server. StoreReady keeps the store keys encrypted and uses them only to send your apps' notifications. To take access away, press Remove next to the key in Settings → Stores, then revoke the key at Apple or delete it in Google Cloud. Revoke an sk_ key on the Notifications tab.