Trial Reminder Notifications
Overview
BillDog's Trial Reminder Notifications feature helps re-engage users during their trial periods by sending timely, configurable local notifications. When local notifications fail, the system automatically falls back to push notifications via FCM (Android) or APNs (iOS) for reliable delivery.
Key Features
Day-based Scheduling
Schedule notifications at specific days during the trial period
Multi-platform Support
Works seamlessly on iOS, Android, React Native, and Flutter
Automatic Scheduling
Notifications are scheduled automatically when users start trials
Fallback Delivery
Push notifications via FCM/APNs when local notifications fail
Notification Delivery Methods
Local Notifications (Primary)
By default, trial reminders are delivered as local notifications scheduled directly on the user's device. This method works offline and doesn't require additional infrastructure.
Push Notifications
Push notifications are a first-class delivery channel. Configure FCM (Android) and APNs (iOS) credentials per project to deliver remote notifications reliably, even when the app is closed.
Android - Firebase Cloud Messaging (FCM HTTP v1)
Configure FCM in Engagement → Messaging → Settings → Push to enable push delivery on Android.
In the app: add com.google.firebase:firebase-messaging and your google-services.json (the com.google.gms.google-services plugin), and declare BillDog’s ready-made service. BillDog then registers the install’s FCM token at every configure and each new one as it arrives, and draws BillDog’s pushes (they are data messages). An app with its own FirebaseMessagingService keeps it and forwards from it instead: BillDogFcm.register(context, token) in onNewToken and BillDogMessagingService().onMessageReceived(context, message.data, …) in onMessageReceived.
<service android:name="io.billdog.notifications.fcm.BillDogFirebaseMessagingService"
android:exported="false">
<intent-filter><action android:name="com.google.firebase.MESSAGING_EVENT" /></intent-filter>
</service>- •Requires FCM Service Account JSON (HTTP v1) from Firebase Console
- •Supports notification channels and customization
- •Reliable delivery even when app is closed
iOS - Apple Push Notification service (APNs)
Configure APNs in Engagement → Messaging → Settings → Push to enable push delivery on iOS. One .p8 key serves both of Apple’s environments: a development build’s token is delivered through the sandbox host, and TestFlight / App Store tokens through production.
- •Uses .p8 token authentication (Apple's recommended canonical method)
- •Requires Bundle ID, Team ID, and Key ID from Apple Developer
- •Automatically handles production and sandbox environments
Rich Media & Push Carousels
Enhance notifications with rich image banners and multi-card interactive carousels:
- •Media Upload: Upload high-res images directly from the Push Composer via Cloudflare R2
- •iOS Carousel Extension: Uses
UNNotificationContentExtensionfor native horizontal swipe interactions. Requires iOS 15+ and a Notification Content Extension target in your app; without one, iOS shows the first image. - •Android Renderer: A static image gallery (up to 4 thumbnails, then “+N more”) with a deep link per card. Android has no native swipeable notification carousel.
Configuration
Enable and configure trial reminder notifications from the Dashboard:
- Open the paywall in the Paywall Builder and select Notifications
Trial reminders are configured per paywall: the Notifications (bell) icon in the builder’s left rail opens the Trial Reminder Notifications panel. (The old
/dashboard/notificationspage now redirects to Engagement → Messaging → Push, which does not hold this setting.) - Enable Trial Reminders
Turn on the switch next to "Trial Reminder Notifications"
- Configure Notification Content
Set the title, body, and timing for your notifications
- Pick the day
Under "When to Send", choose the trial day in "On Trial Day" (one day per paywall, day 1–30)
- (Optional) Configure Push Notifications
Set up FCM and/or APNs credentials in Engagement → Messaging → Settings → Push for fallback delivery
Platform-Specific Setup
React Native and Expo
@billdog.io/react-nativeregisters the native notifications module when you callBillDog.configure. BillDog needs the device's push token, and each platform gets it differently.
- iOS:
NotificationsManager.optIn()asks for permission and for the APNs token. iOS hands the token only to the AppDelegate, so the AppDelegate passes it on with one line (below). Expo writes that line, and theaps-environmententitlement, when the plugin'spushoption is on:["@billdog.io/expo", { "push": true }]. - Android: with Firebase in the app (Expo:
android.googleServicesFileandpush: true, which adds firebase-messaging and BillDog’s FCM service), BillDog registers the FCM token by itself. An app whose push library owns FCM (for example@react-native-firebase/messaging) passes the token toBillDog.setDeviceToken(token)instead, and again whenever it refreshes.
import { BillDog, NotificationsManager } from '@billdog.io/react-native';
// Ask for permission and opt this install in (iOS: also requests the APNs token)
const granted = await NotificationsManager.optIn();
// Android only: the FCM token, and again on every refresh
await BillDog.setDeviceToken(fcmToken);
// Taps the SDK records
NotificationsManager.onNotificationOpened(({ data }) => { /* data.action_url */ });Bare React Native, iOS: forward the token from AppDelegate.
// AppDelegate.mm
#import <BillDogReactNative/BillDogLaunchHook.h>
- (void)application:(UIApplication *)application
didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
[BillDogLaunchHook didRegisterForRemoteNotificationsWithDeviceToken:deviceToken];
}
// AppDelegate.swift (React Native 0.77+)
import BillDogReactNative
func application(_ application: UIApplication,
didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
BillDogLaunchHook.didRegisterForRemoteNotifications(deviceToken: deviceToken)
}aps-environment entitlement); without it iOS issues no token. If your AppDelegate already implements this method for another push library, add the BillDog line to it: both receive the token. A token that arrives beforeBillDog.configure is registered when configure runs.iOS (Swift)
The iOS SDK leverages UNUserNotificationCenter for local notifications.
import BillDogNotifications
// Request permissions (opt in to push notifications)
await BillDogNotificationsManager.shared.pushSubscription.optIn()
// Scheduling happens automatically on trial startAndroid (Kotlin)
The Android SDK uses AlarmManager and NotificationCompat for scheduling.
import io.billdog.notifications.BillDogNotifications
// Register the notifications module (e.g. in Application.onCreate)
val notifications = BillDogNotifications(context)
BillDog.use(notifications)
// Request permissions (Android 13+)
notifications.pushSubscription.optIn(activity)
// Scheduling happens automatically on trial startFlutter
billdog_flutterregisters the native notifications module when you callBillDog.configure. BillDog needs the device's push token, and each platform gets it differently.
- iOS: automatic.
BillDogPush.requestPermission()asks for permission and for the APNs token, and the plugin registers the token iOS returns, with no AppDelegate code. It works next to firebase_messaging, which receives the same token. The app needs the Push Notifications capability (theaps-environmententitlement); without it iOS issues no token. - Android: pass the FCM token from firebase_messaging (
FirebaseMessaging.instance.getToken()) toBillDogPush.setDeviceToken, and again on everyonTokenRefresh. Without firebase_messaging, an app that adds firebase-messaging, itsgoogle-services.jsonand BillDog’s FCM service to its Android runner (see the Android section) has the token registered by BillDog itself.
import 'package:billdog_flutter/billdog_flutter.dart';
// Ask for permission and opt this install in (iOS: also registers the APNs token)
final granted = await BillDogPush.requestPermission();
// Android only: the FCM token, and again whenever it refreshes
await BillDogPush.setDeviceToken(fcmToken);
// Taps the SDK records
BillDogPush.onNotificationClick.listen((click) { /* click.data['action_url'] */ });BillDogPush.notificationOpened(data) from that plugin's callback. Otherwise, call BillDogPush.installNotificationCenterDelegate().Notification Lifecycle
1. Trial Started
When a user starts a trial subscription, BillDog automatically schedules notifications based on your configuration.
2. Notification Scheduled (Local)
The SDK attempts to schedule local notifications on the device. If successful, the user will receive notifications at the configured times.
3. Fallback to Push (If Needed)
If local notification scheduling fails, the system registers the device token and schedules push notifications via FCM/APNs.
4. Auto-Cancellation
Notifications are automatically canceled when users convert to paid subscriptions or when trials expire.
Validation Rules
Before scheduling notifications, BillDog validates:
- Trial is currently active
- Trial start and expiry dates are valid
- Notification permissions are granted
- Scheduled days fall within the trial period
- No duplicate notifications already scheduled
Analytics & Monitoring
Track notification performance in the Dashboard:
- •View scheduled notification count
- •Monitor delivery success rates
- •Track conversion impact from notifications
- •View notification history and logs
Troubleshooting
Notifications not appearing
- • Check that notification permissions are granted on the device
- • Verify trial is currently active and dates are valid
- • Ensure scheduled days fall within the trial period
- • Check device notification settings (Do Not Disturb, etc.)
Push notifications not delivering
- • Verify FCM Service Account JSON (HTTP v1) or APNs .p8 credentials are correctly configured
- • Check device token is successfully registered
- • Review edge function logs for delivery errors
- • Ensure app is configured to receive background notifications
Notifications not being canceled
- • Verify purchase events are properly sent to BillDog
- • Check subscription status updates are being received
- • Review notification cancellation logs in the dashboard
Need Help?
If you encounter issues or have questions about trial reminder notifications:
- •Check the Analytics & Notification Pipeline guide
- •Review the Support page for contact options
Was this page helpful?
Or rate this page: