OneSignal Integration
OneSignal lets you add push notifications to your Newly app. Connect with one click and the AI sets up the SDK, notification components, and a preferences screen for you.Push notifications are currently iOS only. Android support is coming soon. If you need Android push notifications now, reach out to us on Discord.
What is OneSignal?
OneSignal is a push notification platform that handles delivery, user segmentation, engagement tracking, and rich notifications (images, buttons, deep links).Setting Up OneSignal
Open "More" in Newly and tap Push Notifications
Find the Push Notifications panel in the tool strip.
Press Connect OneSignal
Newly creates a OneSignal app and links it to your project automatically. No OneSignal account needed.

Sync your Apple credentials
If you’ve already added Apple credentials in Newly, press Sync Apple credentials to OneSignal to configure APNs for iOS push delivery.
Press "Add push notifications (AI)"
The AI will:
- Add
NotificationProviderto your app layout - Add a
NotificationBellcomponent to your home screen - Create a notification preferences screen
- Configure your bundle identifier
What Gets Added to Your App
When you connect OneSignal and run the AI setup, three components are added:| Component | Purpose |
|---|---|
| NotificationProvider | Wraps your app layout, initializes the OneSignal SDK, and handles permission prompts |
| NotificationBell | A bell icon for your home screen that shows unread notification count |
| Notification Preferences | A screen where users can manage their notification settings |
Sending Notifications
After setup, you can send notifications by asking the AI to set them up in your app logic. Newly manages the OneSignal connection for you.- From Your App
- Segments
- Test Notification
Ask the AI to trigger notifications based on events in your app:
Common Patterns
- Welcome Notification
- Activity Updates
- Promotional
iOS Configuration
iOS requires APNs (Apple Push Notification service) credentials to deliver notifications. You’ll need to set up your Apple credentials in Newly first.Set up Apple credentials
Open the Apple Credentials panel in Newly. You can either:
- Automatic (recommended): Sign in with your Apple ID and Newly handles the rest
- Manual: Upload your own
.p8APNs key file from the Apple Developer Portal
Sync to OneSignal
In the Push Notifications panel, press Sync Apple credentials to OneSignal. This sends your APNs credentials to OneSignal so it can deliver to iOS devices.
Testing Notifications
- Create a development build of your app (not Expo Go)
- Install on a physical device or simulator
- Accept the push notification permission prompt
- Go back to the Push Notifications panel in Newly
- Press Send test notification
Best Practices
Don't Spam
Only send notifications users care about. Too many and they’ll uninstall.
Personalize
Use segments and user data to send relevant messages
Respect Preferences
Let users control which notifications they receive
Time It Right
Schedule notifications for when users are most likely to engage
Troubleshooting
Notifications not arriving
Notifications not arriving
- Make sure you’re testing on a native build, not Expo Go or web preview
- Check that the device has notification permissions enabled
- Verify APNs credentials are synced in the Push Notifications panel
APNs not detected
APNs not detected
- Add your Apple credentials in the Apple Credentials panel first
- Then press Sync Apple credentials to OneSignal in the Push Notifications panel
- If it still fails, double check your APNs Auth Key, Key ID, and Team ID
Test notification sent but not received
Test notification sent but not received
- Make sure the app was opened at least once after installing the native build
- Check that the user accepted the notification permission prompt
- Ensure APNs credentials are synced
- Try uninstalling and reinstalling the app, then send again
Connect button fails
Connect button fails
Resources
OneSignal Docs
Official OneSignal documentation
Push Notification Guide
Best practices for push notifications
Next Steps
Deployment
Deploy your app with push notifications
RevenueCat
Add in-app purchases and subscriptions