Remote Push Notifications
Remote push notifications are delivered from the cloud using OneSignal. They allow you to notify users even when the app is closed.
We don’t duplicate the official OneSignal guide. Follow their Expo setup for full, up‑to‑date steps, and use this page as a concise checklist tailored to this template.
Setup OneSignal
To start sending push notifications with OneSignal, configure your OneSignal app for the platforms you support (Apple APNs, Google FCM).
Create or select your app in OneSignal dashboard.
Configure iOS (Apple Keys & App Groups) and Android (Firebase FCM).
Configure platform credentials Follow the prompts based on your platforms:
- Android: Set up Firebase Credentials
- iOS: p8 Token (Recommended) or p12 Certificate
Click Save & Continue after entering your credentials.
Choose target SDK
Once your platform is configured, your OneSignal App ID will be displayed. Copy and save this ID—you’ll need it
when installing and initializing the SDK.
Add your OneSignal App ID to project environment variables:
EXPO_PUBLIC_ONESIGNAL_APP_ID=your-app-id
Update app.config.ts
The onesignal-expo-plugin is already installed and configured in this template. You only need to ensure your environment variables are wired correctly into the config.
export default ({ config }) => ({
ios: {
entitlements: {
'aps-environment': 'development', // ✅ Required for push notification, change to "production" for Testflight and App Store builds
'com.apple.security.application-groups': ['group.${ios.bundleIdentifier}.onesignal'],
},
}
})
Sending notifications
You can send notifications from the OneSignal dashboard:
For automated messages, use Segments, Filters, or Test Subscriptions (great for QA devices).