Grow guide
Add push notifications to your website app
Updated · by the WebToApp team
Create a Firebase project, add its google-services.json and a service account to WebToApp, turn on the push notifications feature, build the app, then send messages from the Push tab; Android works today and iOS needs APNs setup.
Steps
- 1
Create a Firebase project
Add your Android app with its package ID in the Firebase console and download google-services.json.
- 2
Add Firebase files to WebToApp
In the Signing tab add google-services.json and a service account key for sending messages.
- 3
Turn on push notifications
Enable the push feature in the Features tab and build a new app version.
- 4
Send a message
Open the Push tab, write a title and message, and send it to the devices registered by your app.
How it works
When someone opens your app, it registers a device token with WebToApp. You send a message from the dashboard, and Firebase Cloud Messaging delivers it to those devices.
What to send
Order updates, cart reminders, new posts, offers and account alerts perform best. Keep messages short, relevant and infrequent, and let users opt out in their system settings.
Platform notes
Android push is supported now. iOS push needs Apple Push Notification service setup and is not yet fully wired, so check the features page for its current status.
Privacy
Push uses a device token for each installed app. Mention push notifications in your privacy policy and respect the user’s notification permission.
Frequently asked questions
Do I need Firebase for push notifications?
Yes. Android push uses Firebase Cloud Messaging, so you need a Firebase project and its files added once.
Are push notifications free?
Firebase Cloud Messaging has no per-message fee. Push is currently a beta feature in WebToApp; check the features page for its current status and plan tier.