Push notifications are the messages that appear on a phone's lock screen or notification bar, even when the app is closed. They are useful for order updates, payment confirmations, reminders and offers. Setting them up needs a few accounts and keys on both Android and iPhone, plus some decisions from you about what to send. This article lists what we need.
How push notifications work
Your app does not send notifications directly to phones. Instead, your server (or admin panel) sends a message to the push service run by Google for Android devices, or Apple for iPhones. That service delivers it to the device. To use these services, the app must be registered with them, and your server needs credentials to send messages.
What we need for Android
- Access to a Google cloud project owned by your business, used for the app's push messaging. You can create it with your business Google account and invite our team, or ask us to create it and transfer ownership to you.
- The Android package name of the app, which we normally choose with you at the start, such as
com.pepploweb.shop.
What we need for iPhone
- Access to your Apple developer account with a role that allows creating keys and identifiers. See our article on developer account ownership.
- Permission to create an APNs authentication key, the key that allows your server to send notifications through Apple's push service.
- The app's bundle identifier, chosen at the start of the project.
Keys and server credentials are confidential. We store them securely in the server configuration and never in the app itself.
Decisions we need from you
Which notifications to send
List the events that should trigger a notification, for example:
- Order placed, shipped and delivered.
- Payment successful or failed.
- Recharge or bill payment status.
- Appointment reminders.
- Promotional messages sent by your team from the admin panel.
Wording
Provide the text for each automatic notification. Keep it short; the phone may cut off long messages. Include useful details, such as an order number.
Where tapping should go
Decide which screen each notification opens, for example the order details screen rather than the home page.
Who can send promotional messages
Decide which admin users can send offers and how often, so customers are not overwhelmed.
Permission and user choice
Recent versions of Android and iOS ask the user for permission before an app can show notifications. We recommend asking at a meaningful moment, for example after the first order ("Would you like updates about your order?"), rather than as soon as the app opens. Users can turn notifications off at any time, so make them useful.
Testing
We test notifications on real Android and iPhone devices in the beta build. Please check that they arrive, that the text is correct and that tapping opens the right screen. Notifications may be delayed on some phones by battery-saving settings, which is controlled by the phone, not the app.
Good practices
- Send transactional notifications promptly and keep promotional ones occasional.
- Do not include sensitive data such as full account numbers or OTPs in promotional messages.
- Respect quiet hours for non-urgent messages.
- Track which messages users tap, and improve the rest.
Get started
Send the account access and your list of notifications through a ticket. Learn more on our mobile application page.