Overview
Push notifications let FERAL send proactive alerts to your phone — health warnings, calendar reminders, smart-home events — even when the app isn’t in the foreground. FERAL supports both Firebase Cloud Messaging (FCM) for Android and Apple Push Notification service (APNs) for iOS.Firebase Cloud Messaging (Android)
1
Create a Firebase project
Go to the Firebase Console and create a new project (or use an existing one).
2
Generate a service account key
Go to Project Settings → Service Accounts → Generate new private key. This downloads a JSON file.
3
Configure FERAL
4
Register device tokens
Your Android app registers its FCM device token with FERAL’s API:Response:
Apple Push Notification service (iOS)
1
Create an APNs key
In Apple Developer → Keys → Create a Key. Enable Apple Push Notifications service (APNs).Download the
.p8 key file. Note the Key ID shown on the page.2
Find your Team ID
Your Team ID is in the top-right of the Apple Developer portal, or under Membership Details.
3
Configure FERAL
4
Register device tokens
Your iOS app registers its APNs device token with FERAL:
Notification Types
The brain emits different notification categories depending on context:Device Management API
Test a notification
Troubleshooting
Notifications not arriving on Android
Notifications not arriving on Android
Verify the service account JSON path is correct and the file is readable. Check
feral doctor for FCM connectivity status.Notifications not arriving on iOS
Notifications not arriving on iOS
Ensure you’re using the correct environment (
sandbox for dev, production for release). Confirm the bundle ID matches your app.Invalid device token errors
Invalid device token errors
Device tokens expire when the app is reinstalled or the OS rotates them. Re-register the token from the mobile app.
