Add Push Notifications to a Website App Without a Server
Push notifications are the fastest way to bring people back to an app. They are also the feature that stops many website owners, because the usual advice involves a Firebase project, server code and keys. If your app was built from a website, you can skip most of that. This guide explains how push works in an AppMint app, how to send your first message and how to write notifications people do not mute.
How push works, in plain English
When someone installs your app, their phone gets a unique address, called a token, that Google's messaging service can deliver to. A push message is simply a request to Google to deliver text to that address. The phone shows it even when your app is closed.
Normally you would have to collect those tokens and send requests from your own server. In AppMint every install registers itself, and a send center in the app takes care of delivery. You write the message, choose who gets it and tap send.
Three ways to add push
| Option | Best for | Needs your own server? |
|---|---|---|
| AppMint Push (built in) | Most creators; simplest setup | No |
| OneSignal | If you already use its dashboard | No, but needs a OneSignal account |
| Firebase | If you manage your own Firebase project | Optional |
AppMint supports all three. The rest of this article focuses on the built-in option because it needs the least setup.
Set it up: step by step
- Build or update your app with push turned on. In the builder, enable AppMint Push in the integration step. If you already built the app, open it from Update the App, switch push on and build a new version.
- Install the new build on a phone and open it once. That registers the install so it can receive messages.
- Allow notifications. Recent Android versions ask for notification permission. Accept it on your test phone.
- Open the send center and write a title and a short message.
- Add a link. Decide which page opens when someone taps the notification, for example a sale page or a new article.
- Send a test to your own phone first. The send center has a test option so you can see exactly how the notification looks before anyone else does.
- Send it to your audience, or schedule it for later.
What the send center can do
- Designs. Pick from several notification templates and see a live preview. Saved designs let you reuse a look.
- Scheduling. Choose a time instead of sending immediately, including delivery at the receiver's local time.
- Targeting. Aim a message at a segment instead of everybody, for example by tags you set from your page.
- A/B tests. Send two versions to different groups and compare how they perform.
- Automations. Set up a welcome message for new installs or a win-back message for people who have not opened the app for a while.
- Delivery counts. See how many devices accepted a message, so you are not guessing.
One honest detail: targeting, local-time delivery, A/B tests and automations reach installs that have registered with the service. Apps built before registration existed will not appear in those audiences until they are rebuilt and updated by users.
Tagging users from your website
Because the app loads your site, your pages can tell the app who the visitor is. AppMint exposes small JavaScript calls that let your page set a user ID and tags such as "customer" or "newsletter". Those tags then drive segments in the send center. The builder's documentation on freewebtoapk.com lists the exact calls, so copy them from there rather than guessing the names.
Sending to a single user from your own system
Some apps, such as seller dashboards, need to alert one specific person, even when the app is closed. In that case your page can obtain the device token, save it with the user account, and your own backend can send a data message straight to Google's messaging service. AppMint draws that message like any other notification. This route does need your own server and a Firebase service account, so use it only when you truly need per-user alerts.
Write notifications people keep on
- Be useful or time-sensitive. "Your order has shipped" earns a tap. "We miss you" every day earns a mute.
- Keep the title under about 40 characters and the body short enough to read in one glance.
- Lead with the value. Put the offer, the news or the deadline first.
- Send at sensible hours. Local-time delivery helps you avoid 3 a.m. alerts.
- Limit frequency. Start with one or two a week and watch your results before sending more.
- Always link somewhere specific. A tap should land on the page the message promised.
Troubleshooting
- Nothing arrives on the test phone. Check that notifications are allowed for the app in Android settings, and that you opened the new build at least once.
- Some phones are slow. Battery savers on a few phone brands delay or block background messages. Ask testers to exempt the app from battery optimisation.
- The tap opens the home page. Check that the link you set is a full address or a valid path on your site.
- Old installs miss new features. Users must update to the new version of your app to join targeted audiences.
Respect the rules
Do not send misleading or deceptive notifications, do not use them for ads that look like system alerts, and give people a way to turn them off in the app's settings. Google Play expects apps to follow its policies on notifications and advertising, and users who feel spammed will uninstall long before a reviewer sees anything.
FAQ
Do I need Firebase or my own server?
Not for the built-in AppMint Push. Your installs register themselves and you send from the in-app send center. Firebase or OneSignal are alternatives if you prefer them.
Will notifications arrive when the app is closed?
Yes, that is how push works. Delivery depends on the phone, though: aggressive battery savers on some devices can delay messages.
Can I schedule or target notifications?
Yes. The send center supports scheduling, local-time delivery, targeting by tags and A/B tests for installs that have registered.
Where do I get AppMint?
It is a free app on Google Play. Build your website app, switch push on and send a test to your own phone in a few minutes.