
Set up push notifications
Just ask Hercules to:Set up push notifications for my app, making sure to handle enabled, disabled, and not available states.
Prompt users to opt into notifications
We strongly recommend your app handles all of the following 4 permission states.Send notifications to your iOS app
Your App Store build receives push notifications natively through Apple Push Notification service (APNs). The same sends reach both your web app and your iOS app, so a user signed in on both gets the notification on each device. Apple requires a push notification key from your Apple Developer account. Apple doesn’t let other services create one for you, so you create it once and upload it to Hercules.Turn on push notifications for iOS
Create an APNs key
.p8 file. Apple
lets you download it only once, so keep it somewhere safe.Upload the key
.p8 file
and enter the Key ID (shown on the key’s page) and your Team ID (under Membership
details).Build a new iOS version
Send notifications to your Android app
Your Google Play build receives push notifications natively through Firebase Cloud Messaging (FCM, Google’s push service for Android). The same sends reach your web app, your iOS app, and your Android app. FCM delivers through your own Firebase project, so you create one and give Hercules a key for it.Add your app to Firebase
Turn on push notifications for Android
google-services.json
file Firebase gives you under Android push notification config, and save.Create a service account key
google-services.json, and it is a secret, so keep it somewhere safe.Upload the key
Build a new Android version
google-services.json and the
key: a key from another project cannot reach your app’s devices.Send notifications
From the Hercules UI
Go to the Push Notifications tab to send notifications manually. When your app supplies an authenticated end user’s name or email while registering a subscription, that app-scoped snapshot is shown here. Anonymous subscribers continue to show their visitor ID. Devices subscribed from your iOS app are marked iOS app, and devices subscribed from your Android app are marked Android app.Select recipients

Compose your message

Send
Triggered by events
Send notifications automatically when something happens in your app. Ask Hercules:- “Send a notification when an order is placed”
- “Notify users when their order ships”
- “Send a notification when an order is out for delivery”
- “Notify users when their order is delivered”
Scheduled from your app
Schedule notifications to send at specific times or after delays. Ask Hercules:- “Send a welcome notification 1 hour after sign up”
- “Remind users about abandoned carts after 24 hours”
- “Let me schedule notifications from an admin page”
Test push notifications
Push notifications do not work in Hercules preview. Follow the mobile app testing instructions to test on a real device:- Publish your app
- Install on a real device (Add to Home Screen)
- Grant notification permission when prompted
- Send a test notification from Mobile → Push Notifications
FAQ
Do notifications work in Hercules preview?
Do notifications work in Hercules preview?
Can I send notifications to specific users?
Can I send notifications to specific users?
How do I re-request permission if a user denied?
How do I re-request permission if a user denied?
Do notifications work on iOS Safari?
Do notifications work on iOS Safari?
Can I test iOS app notifications in the simulator?
Can I test iOS app notifications in the simulator?
Do notifications work in my App Store iOS app?
Do notifications work in my App Store iOS app?
window.Capacitor.Plugins.PushNotifications. See Send
notifications to your iOS app.Do notifications work in my Google Play Android app?
Do notifications work in my Google Play Android app?
google-services.json
under Android push notification config, upload a Firebase service account key under Android
push notification key, and build again. Your app registers through
window.Capacitor.Plugins.PushNotifications. See Send notifications to your Android
app. Browser-based Android packaging, in an early test
for some accounts, hands web notifications to a compatible browser instead.What can I customize in a notification?
What can I customize in a notification?
- Title: Bold headline (keep it short, max 200 characters) - Body: Main message (optional, max 500 characters) Known limitation: Web notifications can’t deep-link to a specific screen. They open the app generically. In your iOS and Android apps, a tapped notification can open a specific screen.