AnalyticsEarly accessDesigned and in development. No results yet. See what's left on the roadmap.
Delivery receipts and message analytics
Early access · launching soon. This guide uses the Oricato SDKs 1.0.1, the version in the current SDK kit.
Every Oricato message has a report that shows its push notification delivery rate, open rate and conversions: how many people it was sent to, how many phones confirmed it arrived, how many people tapped it, and what they did in the app afterwards. This guide explains where each number comes from, how to set up your app so the numbers are complete, and how to read and export a message report.
The examples use a neutral app called Lingora (Android package and iOS bundle ID com.lingora.app).
How the numbers are collected
Oricato counts three kinds of events. Firebase Cloud Messaging (FCM) tells the server what it accepted; the SDK on the phone tells the server what happened next.
| Event | Reported by | When | Sampled? |
|---|---|---|---|
delivered |
The SDK, or the iOS Notification Service Extension | The push reached the app on the phone. Reported even when the person has notifications turned off for the app. | Yes, per your project’s sampling setting |
opened |
The SDK | The person tapped the notification. | Never: every device reports opens |
conversion |
The SDK, when your app calls trackEvent(name) |
Your app recorded a key action, for example lesson_completed. |
Never |
What the server does with them
- Opens are unique. Only the first open per message and installation counts. Repeats are accepted and ignored.
- Deliveries are clamped. Every displayed Delivered number is at most Sent, per breakdown row and per time bucket. With sampling on, deliveries are scaled up before clamping.
- Every receipt is signed. Each push carries a receipt key (
fx_rk, 22 characters). The SDK echoes it back asreceipt_key, and the server rejects adeliveredoropenedevent with a missing or wrong key (invalid_receipt). Your app does not handle the key; the SDK treats it as opaque. - Old events are dropped. The server clamps the device time to the last 30 days. Older events are rejected
(
too_old). - Conversions are attributed by the server. A conversion is credited to the message the same installation opened most recently, if that open happened within the 24 hours before the event. Only that one message gets the credit: if a person opened two messages, the conversion goes to the later open. Conversions without a matching open still count in the project totals. The SDKs contain no attribution logic.
What the SDK does on the device
You do not write any of this code. It explains why the numbers can be trusted and why they can arrive late.
- No double counting. The SDK keeps a persisted list of the last 500 message IDs it reported, per event type
(
deliveredandopened), and entries expire after 30 days. Conversions get a uniqueevent_idwhentrackEventis called; the server de-duplicates by that ID. - Delivered before opened. If a person opens a message the device never reported as delivered (and the device is
in the receipt sample, and delivery is not reported by the iOS extension), the SDK reports
deliveredfirst, with the same time. This keeps Delivered at least as high as Opened in the cases the SDK can see. On iOS withsetDeliveryReportedByExtension(true), the app never adds this extradeliveredon open; the extension is the only source of delivered receipts. - A persistent queue. Events wait in a queue stored in app-private storage that is not backed up: at most 500 events (the oldest are dropped on overflow), and events older than 30 days are dropped. The queue is sent in batches of at most 100 events, only after the installation has registered with Oricato.
- When the queue is sent. At app start, when the app comes to the foreground, 2 seconds after an open or a
conversion, when the network comes back, and at a regular interval while events are pending and the app is in the
foreground. On Android,
deliveredreceipts are never sent from inside the push handler: a WorkManager job (oricato_events_flush, network required) sends them after a short random delay so a large send does not arrive at the server all at once. - Backoff. After a failed attempt the SDK waits
min(1 h, 5 s × 2^n)multiplied by a random factor between 0.5 and 1.0, wherenis the number of consecutive failures. ARetry-Afterheader from the server (plus a random extra of up to the same number of seconds) wins when it is longer.
Because of the random delay and the queue, Delivered keeps rising for a while after Sent stops. A phone that is off when the message is sent reports when it comes back online, as long as the push itself is still within its expiry time.
Delivery receipt sampling
Large audiences can send millions of delivered receipts. Each project chooses how many phones report them:
| Setting in the dashboard | API value | Effect |
|---|---|---|
| All phones report arrival (default) | all |
Exact Delivered numbers. |
| 1 in 10 phones report | sample_10 |
About 10% of installations report. The dashboard scales the number up and labels it Delivered (estimated). |
| Off | off |
No delivered receipts. Delivered shows Not measured. |
How it works:
- The server decides, per recipient, whether a device reports
delivered, and putsfx_dr = "1"into that device’s payload. The SDKs, the iOS extension and Android system mode reportdeliveredonly whenfx_dris"1". They never read the setting and never hash anything themselves. - The 10% sample is deterministic: it is chosen from a hash of the installation’s subscription ID, so the same devices report for every message.
- Test sends always request delivery receipts, whatever the setting.
- Each message keeps the sampling rate it was scheduled with (
receipt_sample_percent:100,10or0). A change applies to messages scheduled after you save. - Opens and conversions are always reported by every device.
What each platform can report
| Platform and setup | Delivered | Opened | Conversions |
|---|---|---|---|
Android, Shown by the Oricato SDK (sdk mode, the default) |
Yes, from OricatoMessagingService for every push |
Yes | Yes |
Android, Shown by Android (system mode) |
Almost none: only pushes that arrive while the app is in the foreground, plus the delivered receipt recorded together with each open | Yes | Yes |
iOS with the Notification Service Extension and setDeliveryReportedByExtension(true) |
Yes, from the extension for every push | Yes | Yes |
| iOS without the extension | Only pushes that arrive while the app is in the foreground | Yes | Yes |
| Flutter | Same as the native platform underneath: Android from the plugin’s handlers, iOS needs the same extension | Yes | Yes |
On native Android, com.oricato.push.OricatoMessagingService must be declared in your app manifest (or your own service must forward to
Oricato.handleRemoteMessage). Without it, no push reaches the SDK, so nothing is shown and nothing is reported. See
the Android quickstart. Flutter apps do not declare it: the Flutter plugin
receives pushes through its own firebase_messaging handlers.
Prerequisites
- A project in the Oricato dashboard with working Firebase credentials. For iOS, an APNs authentication key (
.p8) uploaded in Firebase. See Firebase and APNs credentials. - The Oricato SDK 1.0.1 in your app, initialized at every launch: Android, iOS or Flutter.
- A real phone for testing.
- Dashboard roles: viewer can read reports, editor can export the report CSV and send tests, and changing project settings (step 1) needs the admin role.
Step 1: Choose delivery receipt sampling
- In the dashboard, open your project → Project settings → Sending.
- Under Delivery reports (“Phones tell the server when a notification arrives. Opens are always counted.”),
pick one option:
- All phones report arrival for exact numbers. Start here.
- 1 in 10 phones report when your audience is large and you want to save server load. Numbers become estimates.
- Off if you do not need Delivered at all.
- Save. The change applies to messages scheduled after you save. Messages already scheduled keep their rate.
While you are in Sending, check Android display. Shown by the Oricato SDK (recommended) is needed for Android Delivered numbers; with Shown by Android, arrival cannot be reported.
If you manage settings through the admin API, the project field is delivery_receipt_sampling with the values
all, sample_10 and off.
Step 2: Install the Notification Service Extension on iOS
Without an extension, iOS runs your app’s code only when a push arrives in the foreground, so most iOS deliveries are
never seen. The extension runs for every Oricato push, because Oricato always sends mutable-content: 1.
-
In Xcode choose File → New → Target… → Notification Service Extension. Name it
NotificationServiceand use iOS 13 or later. If your app already has a Notification Service Extension, do not add a second one; useOricatoNotificationServiceHelperinside the existing one instead. -
Add the
OricatoPushNotificationServiceproduct to the extension target. -
Replace the generated
NotificationService.swift:import OricatoPushNotificationService class NotificationService: OricatoNotificationService {} -
Add the key
OricatoApiBaseURL(String) to the extension’sInfo.plist, with the same API address you pass toinitialize:<key>OricatoApiBaseURL</key> <string><ORICATO_API_ADDRESS></string> -
In the app, right after
initialize, tell the SDK that the extension reports deliveries, so the app stops reporting them and nothing is counted twice:Oricato.setDeliveryReportedByExtension(true)In a Flutter app, add the same Swift extension target and call this in Dart instead:
await Oricato.setDeliveryReportedByExtension(true);
How the extension reports: it reads fx_pid, fx_sid, fx_id, fx_rk and fx_dr from the push. When fx_dr is
"1", it starts the receipt request first (8 second timeout, one retry after a random 1 to 5 seconds if time
remains) and downloads the image at the same time. The extension is stateless, so if both attempts fail the receipt
is dropped. It needs no App Group for receipts.
Only call setDeliveryReportedByExtension(true) when the extension is really installed. Without an extension, that
call turns off the foreground deliveries too, and iOS Delivered stays empty.
Full setup, including images and badges, is in the iOS quickstart.
Step 3: Track a key action with trackEvent
A conversion connects a notification to something the person did in your app. Pick one or a few actions that matter,
for example lesson_completed, workout_started or purchase, and call trackEvent when the action happens. The
SDK queues the event with a new event_id and the current time, and the server attributes it to the message the
person opened within the previous 24 hours.
Android (Kotlin)
import com.oricato.push.Oricato
fun onLessonFinished() {
Oricato.trackEvent("lesson_completed")
}
From Java, the same call is Oricato.trackEvent("lesson_completed");.
iOS (Swift)
import OricatoPush
func lessonFinished() {
Oricato.trackEvent("lesson_completed")
}
Flutter (Dart)
import 'package:oricato_push/oricato_push.dart';
Future<void> onLessonFinished() async {
await Oricato.trackEvent('lesson_completed');
}
Rules for event names:
- Names must match
^[a-z0-9_]{1,40}$: lowercase letters, digits and underscores, 1 to 40 characters. A name that does not match is logged as an error and ignored.LessonCompletedandlesson-completedare ignored. - Call
trackEventafterinitialize. On Flutter, a call made beforeinitializeis logged and ignored. On Android and iOS, the event is kept and sent once the SDK is initialized and registered. - A project keeps at most 100 distinct event names, first come, first registered. Events with a newer name are
still stored but appear as
(other)in reports and insights. Use a small, fixed set of names, never IDs or user data. - If your project enforces Firebase App Check, conversion events need a valid App Check token. Batches made only of delivered and opened receipts never need a token; a batch that also contains a conversion does.
Step 4: Open a message report and read each number
- In the dashboard, open Messages and click a message that has started sending. The report refreshes while the message is sending (Live), and you can refresh it at any time.
- Read the tiles at the top:
| Tile | API field | What it counts |
|---|---|---|
| Audience | audience |
People put into send batches so far (for local-time messages, batches are added per time zone over time). |
| Sent | sent |
Pushes Firebase accepted. |
| Failed | failed |
Pushes Firebase refused. The reasons are listed under Why some failed. |
| Delivered or Delivered (estimated) | delivered |
Arrivals reported by the app or the iOS extension, never more than Sent. Estimated when delivered_sample_percent is below 100; Not measured (null) when it is 0. |
| Opened | opened |
Unique people who came into the app by tapping the notification. |
| Open rate | open_rate |
Opened ÷ Sent. |
| Did something | conversions |
Conversions attributed to this message (within 24 hours after an open). One person can count more than once. Shown when there is at least one. |
The report also returns delivery_rate (Delivered ÷ Sent, null when not measured) and these counters:
| Field | Meaning |
|---|---|
invalidated |
Installations Firebase reported as no longer valid (for example, the app was uninstalled). They are left out of future sends automatically. |
expired |
Recipients whose message expired (its Expires after time passed) before it could be sent. |
cancelled |
Recipients not sent to because the message was cancelled. |
skipped |
Recipients who were no longer subscribed when their batch was sent. |
- Below the tiles:
- Over time shows sent and delivered above and opened below, in 5-minute, 15-minute, hourly or daily buckets depending on how long the message has been running. Delivered is clamped cumulatively, so receipts that arrive in a later bucket still show.
- Why some failed lists failure reasons with a plain label and a count (see Troubleshooting).
- Did something lists each conversion event name with its count and top countries.
- Use the tabs Countries, Languages and Platforms for the same numbers per row, sorted by Sent. Local-time messages also have a Time zones tab that shows each group’s send time and progress.
Open rate in Oricato divides by sent, not by delivered. Some other tools divide by delivered, so compare definitions before you compare numbers across tools.
Project-wide insights
For trends across messages, the dashboard’s insights use the same events:
- Categories: sent, opens, open rate and conversions per message category, optionally by country, language or platform.
- Open times: opens by weekday and by local hour.
- Routes: opens and conversions per launch URL (
""means “No link”). - Conversions: each event name with its total and how many were attributed to a message.
- Engagement levels, recomputed nightly:
champion(8 or more opens in 30 days),active(2 to 7),light(1),sleeping(0), andnew(first seen less than 7 days ago, which takes precedence). You can target these levels in an audience.
Reading numbers from your server
Dashboard reports are served by the admin API, which uses dashboard sign-in. From your own backend, use an API key:
-
The REST API returns a message with its
totals(the same fields as above, withrecipientsin place ofaudience) andreceipt_sample_percent:curl -s "<ORICATO_API_ADDRESS>/api/v1/messages/<MESSAGE_ID>" \ -H "Authorization: Bearer <ORICATO_API_KEY>"See the REST API quickstart.
-
The OneSignal-compatible endpoint returns OneSignal’s shape, for schedulers you migrate without code changes:
curl -s "<ORICATO_API_ADDRESS>/api/v1/notifications/<MESSAGE_ID>?app_id=<ORICATO_PROJECT_ID>" \ -H "Authorization: Bearer <ORICATO_API_KEY>"In that response
successful= sent,failed= failed,received= delivered (0 when not measured),converted= opened (OneSignal’s meaning of “converted” is a click, not an in-app event),erroredis always 0, andremaining= recipients that are not yet sent, failed, expired, cancelled or skipped.platform_delivery_statsgivessuccessful,failedandconvertedper platform. Times are Unix seconds. See Migrate from OneSignal.
Step 5: Export the report as CSV
-
On the message report, click Export CSV (“Numbers per country, language and platform”). The button needs the editor role and appears once the message has started sending.
-
The file is saved as
message-<message ID>-report.csv. Its header row is exactly:country_code,country_name,language,platform,sent,failed,delivered,opened,open_rateThere is one row per country, language and platform combination, sorted in that order.
deliveredis clamped tosent, andopen_ratehas 4 decimals.
The admin endpoint behind the button is GET /admin/v1/messages/{message_id}/report.csv.
Verify it works
- Turn on SDK logs while you test, right after
initialize:Oricato.setLogLevel(OricatoLogLevel.DEBUG)on Android,Oricato.setLogLevel(.debug)on iOS,await Oricato.setLogLevel(OricatoLogLevel.debug);in Flutter. Run your app on a real phone and allow notifications. - In the dashboard, open your project → Verify setup and press Send test notification. Test sends always request delivery receipts, so sampling does not hide the result.
- Watch the checklist: it ticks arrived when the phone reports
delivered, and opened after you tap the notification. On iOS, arrived appears with the app in the background only when the extension from step 2 is installed. - In your app, trigger the action you instrumented in step 3 within 24 hours of tapping a notification.
- Send a real message to a small audience (for example, your test devices), open its report, and check that Delivered, Opened and Did something update. Receipts are applied within seconds of reaching the server, but phones send them with a short delay, so allow a few minutes.
Troubleshooting
| Symptom | Likely cause and fix |
|---|---|
Delivered shows Not measured (null) |
Delivery reports were Off when the message was scheduled. Turn them on in Project settings → Sending for future messages. Past messages keep their setting. |
| Delivered says estimated | The project samples 1 in 10 phones. The number is scaled from that sample. Choose All phones report arrival for exact numbers on future messages. |
| Delivered is far below Sent on iOS | No Notification Service Extension, so only foreground arrivals count. Install it (step 2). If it is installed, check OricatoApiBaseURL in the extension’s Info.plist. |
| iOS Delivered is empty even in the foreground | setDeliveryReportedByExtension(true) is called but no extension is installed. Remove the call or install the extension. |
| Delivered is near zero on Android | The project uses Shown by Android (system mode). Switch to Shown by the Oricato SDK. On native Android, also check that com.oricato.push.OricatoMessagingService is declared in your manifest (or that your own service forwards to Oricato.handleRemoteMessage). |
| Delivered is somewhat below Sent | Normal, within limits: phones that stay offline until the message’s expiry time passes, apps stopped by battery savers, and receipts still in a phone’s queue. Check again later and compare by platform and country. |
| Delivered is fine but Opened is unusually low on some Android brands | Some manufacturers’ systems (for example TECNO HiOS) can demote app notifications to silent, so they arrive but are easy to miss. The phone still reports delivered. Ask testers to check the app’s notification settings on that device. |
| Opened is zero but people tap | Taps must reach the SDK: on Android through the SDK’s notification or Oricato.handleIntent, on iOS through the notification delegate helpers, on Flutter through the forwarding hooks. See your platform’s quickstart. |
| Did something stays empty | The name does not match ^[a-z0-9_]{1,40}$ (check the SDK log), on Flutter trackEvent runs before initialize (Android and iOS keep the event until then), the action happened more than 24 hours after the open, or App Check enforcement rejected the event. Unattributed conversions still appear in project insights. |
| Many failures | Read Why some failed and match the reason below. |
Failure reasons
| Reason code | Label in the report | What to do |
|---|---|---|
unregistered |
App uninstalled | Nothing. The installation is invalidated and left out of future sends. |
sender_id_mismatch |
Registered with another Firebase project | The app’s google-services.json or GoogleService-Info.plist is from a different Firebase project than the credentials in Oricato. Use one Firebase project for both. |
invalid_token |
Invalid device token | The token is malformed or stale. The SDK registers a fresh one at the next launch. |
apns_auth_error |
APNs key missing or invalid in Firebase | Upload a valid APNs authentication key (.p8) in Firebase console → Project settings → Cloud Messaging → Apple app configuration. |
quota_exceeded |
Firebase rate limit reached | Firebase throttled the send. Lower Firebase speed limit in Project settings → Sending, or leave it empty for the server default. |
unavailable |
Firebase temporarily unavailable | A temporary Firebase outage. |
internal |
Firebase internal error | A Firebase-side error. |
invalid_argument |
Firebase rejected the message | Check the link, image and extra data of the message. |
unauthenticated |
Firebase credentials rejected | Upload a new service account key in Oricato. |
permission_denied |
Service account lacks permission | Give the service account permission to send with Firebase Cloud Messaging. |
timeout |
Timed out talking to Firebase | A network timeout to Firebase. |
other |
Other error | See the message’s Activity tab. |
If a phone never appears in Verify setup at all, no report can count it. On Android, a null FCM token or a Firebase Installations “BAD CONFIG” error usually means the Android API key in Google Cloud is restricted without your app’s SHA-1 certificate fingerprint. More cases are in Troubleshooting delivery.
Next steps
- Send from the dashboard: compose, test and schedule a message.
- iOS quickstart: the full Notification Service Extension setup.
- Troubleshooting delivery: Firebase, APNs and device issues.