Overview
Radar supports two types of push notifications:- Local notifications: Triggered by location events (geofence entries/exits, beacon proximity)
- Silent push notifications: Server-triggered notifications for campaign delivery and tracking
Setup
Enable push notification capability
In Xcode, navigate to your app target’s Signing & Capabilities tab.Click + Capability and add Push Notifications.
Local notifications for location events
Radar can automatically show local notifications when location events occur.Configure geofence notifications
Add notification metadata to your geofences in the Radar dashboard:Configure beacon notifications
Add notification metadata to your beacons:Configure trip notifications
Add notification metadata to trip destinations:Notification metadata format
For more control over notification appearance, use the full notification format:Silent push notifications
Silent push notifications enable server-triggered location tracking and campaign delivery.Enable silent push
Enable remote notification background mode
In Xcode, add Background Modes capability and enable Remote notifications.
Notification conversions
Track when users interact with notifications:Automatic conversion tracking
WhenautoLogNotificationConversions = true, the SDK automatically logs conversions when users tap notifications:
Manual conversion tracking
Manually log conversions for custom notification handling:Deep link handling
Automatic deep link handling
WhenautoHandleNotificationDeepLinks = true, the SDK automatically opens URLs from notification metadata:
Manual deep link handling
Manually handle deep links for custom routing:Upload APNs certificate
For server-triggered push notifications:- Generate an APNs certificate in the Apple Developer Portal
- Upload the certificate to the Radar dashboard under Settings > Push Notifications
- Configure your notification campaigns in the dashboard
Custom notification handling
For full control over notification presentation:Best practices
Request permission at the right time
Request notification permissions when the user will understand the value, not immediately on app launch.
Keep messages relevant
Ensure notification content is contextually relevant to the location event.
Test notification campaigns
Use test devices and geofences to verify notifications before launching campaigns.
Monitor conversion rates
Track notification conversion rates in the Radar dashboard to optimize campaigns.
Troubleshooting
Notifications not appearing
Notifications not appearing
- Verify notification permissions are granted
- Check that the Push Notifications capability is enabled
- Ensure notification metadata is properly formatted in geofence/beacon configuration
- Check device notification settings for your app
Silent push not working
Silent push not working
- Verify Remote notifications background mode is enabled
- Ensure
silentPush = truein initialization options - Check that APNs certificate is uploaded to the Radar dashboard
- Verify the device token is registered
Conversions not tracking
Conversions not tracking
- Ensure
autoLogNotificationConversions = trueor calllogConversionmanually - Check that notification identifiers start with “radar_”
- Verify the notification delegate is properly set