Skip to main content

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 SettingsService AccountsGenerate new private key. This downloads a JSON file.
3

Configure FERAL

The service account JSON contains sensitive credentials. Store it outside your project directory and never commit it to version control.
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 DeveloperKeysCreate 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

Use "sandbox" for development builds and "production" for TestFlight / App Store builds.
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

Verify the service account JSON path is correct and the file is readable. Check feral doctor for FCM connectivity status.
Ensure you’re using the correct environment (sandbox for dev, production for release). Confirm the bundle ID matches your app.
Device tokens expire when the app is reinstalled or the OS rotates them. Re-register the token from the mobile app.