---
title: "Send push notifications from the apps you build"
description: "Send push notifications from the app you build in Hercules to web, iOS and Android users. Send one by hand, when an order ships, or on a schedule you set."
---

# Send push notifications from the apps you build

Ask Hercules to set up push notifications and it handles the permission prompt, the device sign-up and the delivery. Then send a notification by hand from the Push Notifications tab, or have your app send one when something happens, such as an order shipping.

- **Set up by asking.** One prompt adds permissions, sign-up and delivery.
- **Three ways to send.** By hand, when something happens in the app, or on a schedule.
- **Web, iOS and Android.** The same send reaches each device a user has subscribed on.

## What can you do with push notifications?

### Ask users at the right moment

Ask Hercules to handle all four permission states, including users who turned notifications off and devices that can't receive them. Ask for permission when notifications matter, such as right after a customer places an order. [Set up push notifications](https://hercules.app/docs/apps/push-notifications)

### Send one by hand

In the Push Notifications tab, choose every subscriber or search for specific users. Write a title and an optional body, then click Send Notification. [Send notifications](https://hercules.app/docs/apps/push-notifications)

### Send when something happens

Ask Hercules to notify customers when they place an order and when it ships or arrives. Your app then sends each notification on its own as the order moves along. [Triggered by events](https://hercules.app/docs/apps/push-notifications)

### Schedule reminders

Send a welcome note 1 hour after sign-up or an abandoned-cart reminder after 24 hours. Hercules can also build an admin page where your office schedules its own. [Scheduled from your app](https://hercules.app/docs/apps/push-notifications)

### Reach your iOS and Android apps

Your App Store and Google Play apps get notifications once you upload a key from Apple and one from Google's Firebase. Tapping a notification in those apps can open a specific screen, such as the order it's about. [Notifications in store apps](https://hercules.app/docs/apps/push-notifications)

## How does sending a push notification work?

### 1. Set it up

> Set up push notifications for my app, making sure to handle enabled, disabled, and not available states.

Hercules adds the push notification permission prompt to your app and registers each device that opts in.

### 2. Test it on your phone

Publish the app, add it to your phone's home screen and allow notifications. Send yourself a test from the Push Notifications tab, and Hercules delivers it to your phone. [Mobile app testing](https://hercules.app/docs/apps/mobile/test-mobile)

### 3. Send from your app

> Notify customers when their order is out for delivery.

Hercules adds the notification, so it goes out each time an order reaches out-for-delivery status.

## What could a business do with it?

In this hypothetical example, a propane distributor tells each customer when the truck is about 30 minutes out. Customers install the distributor's app from its website or the App Store. When a driver marks a stop as next, the app notifies that customer, and tapping it in the iOS app opens that delivery.

## What should you know before you send?

- Push notifications don't work in the Hercules preview.
- On iPhone, web notifications work only after the user adds the app to the home screen, on iOS 16.4 or later.
- Web notifications can't open a specific screen. Only the iOS and Android apps can.
- The iOS and Android apps need a new store build after you add the key. Publishing to the App Store is in beta.
- Once a user turns notifications off, your app can't ask again. It can show them how to turn them back on in their phone's settings.
- A title can be up to 200 characters, and the body up to 500.
- See what each plan includes on the [pricing page](https://hercules.app/pricing).

## Related features

- Use [Mobile apps](/features/mobile-apps) to publish to Google Play and the App Store when you want notifications in store apps.
- Use [Hercules Email](/features/email) to send invoices and order confirmations when a customer needs a message to keep.
- Use [Hercules Auth](/features/authentication) to sign users in when you want to find each subscriber by name or email.

## How do you get started?

Pick one customer event worth a notification and test it on your own phone first. Start building.

## Frequently asked questions

### Can I send to specific users?

The Push Notifications tab shows each subscriber's name or email when your app supplies it, and a visitor ID for anonymous subscribers. Search by any of these to pick who gets the notification.

### Do push notifications work in the Android app?

Android push notifications work through your own Firebase project. You upload its `google-services.json` file and a private key from its project settings, and both must come from the same project. [Android setup](https://hercules.app/docs/apps/push-notifications)

### Do web subscribers get notifications before I upload a store key?

Web subscribers keep getting notifications before you upload a key. Until then, notifications to iOS or Android app users count as failed.

### Can I test notifications in the iOS Simulator?

The iOS Simulator can't register with Apple for notifications. Test on a real iPhone with a TestFlight build, the test copy of your iOS app that Hercules uploads to Apple. [Publish to the App Store](https://hercules.app/docs/apps/mobile/publish-app-store)

```json
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "Can I send to specific users?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "The Push Notifications tab shows each subscriber's name or email when your app supplies it, and a visitor ID for anonymous subscribers. Search by any of these to pick who gets the notification."
      }
    },
    {
      "@type": "Question",
      "name": "Do push notifications work in the Android app?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Android push notifications work through your own Firebase project. You upload its google-services.json file and a private key from its project settings, and both must come from the same project. Android setup"
      }
    },
    {
      "@type": "Question",
      "name": "Do web subscribers get notifications before I upload a store key?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Web subscribers keep getting notifications before you upload a key. Until then, notifications to iOS or Android app users count as failed."
      }
    },
    {
      "@type": "Question",
      "name": "Can I test notifications in the iOS Simulator?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "The iOS Simulator can't register with Apple for notifications. Test on a real iPhone with a TestFlight build, the test copy of your iOS app that Hercules uploads to Apple. Publish to the App Store"
      }
    }
  ]
}
```
