Developers · Migration reference
Migrating from OneSignal, in code
Your servers change three lines: the address, the key and the app ID. Your apps add one SDK, next to OneSignal's, in their next release. Here is every step, what carries over, and how to roll back.
Last updated · Ask the docs, or a person
Removed: POST https://onesignal.com/api/v1/notificationsAdded: POST https://<your-api-host>/api/v1/notificationsRemoved: Authorization: Basic <ONESIGNAL_REST_API_KEY>Added: Authorization: Bearer <ORICATO_API_KEY>Removed: "app_id": "<ONESIGNAL_APP_ID>"Added: "app_id": "<ORICATO_PROJECT_ID>" Three changed lines: the OneSignal address becomes your Oricato account's address, the OneSignal REST API key becomes an Oricato API key, and the OneSignal app ID becomes your Oricato project ID.
01 · Overview
Server first, then apps
Push tokens belong to Firebase, Apple and your app, not to OneSignal. That's why a move doesn't ask people to allow notifications again. It does need a release of each app with the Oricato SDK, because that's how a phone registers with your account.
- 01
Set up
Create a project per app, upload a Firebase key, create an API key.
- 02
Release
Ship one app version with both SDKs.
- 03
Test
Send to your own test devices from your scheduler.
- 04
Cut over
Switch the scheduler's URL, key and app ID, for every campaign of that app at once.
- 05
Watch
Compare the first sends with your OneSignal baseline.
- 06
Clean up
In a later release, remove the OneSignal SDK.
OneSignal sends
Oricato sends
Two tracks over time. OneSignal sends: solid until the cut-over, then dashed because it still reaches phones that haven't updated, ending when the OneSignal SDK is removed in a later release. Oricato sends: a short test-devices segment after the release with both SDKs, then solid from the cut-over onward. Markers: release with both SDKs, cut-over, rollback window, later release.
Step 1 · Dashboard
Projects, push keys and API keys
- One project per app. Use the Firebase project your app already ships with (
google-services.json,GoogleService-Info.plist). The dashboard checks the key with Google and warns later if devices report a different Firebase project. - A least-privilege Firebase key: a dedicated service account with only the Firebase Cloud Messaging API Admin role.
- An API key for your scheduler, under Project settings › API keys. Copy it when it's shown; it won't be shown again. The default quota is 500 messages a day. A scheduler that plans a month ahead with 3 to 5 daily slots creates 90 to 150 messages per app (3 to 5 × 30 days), well under it, and you can raise it per key.
Step 2 · Your apps
Ship one version with both SDKs
The two SDKs take different paths for their pushes and never touch each other's messages, so they can share a release.
Android
- Keep
com.onesignal:OneSignal5.x as it is. Add the Oricato SDK,google-services.jsonand the messaging service. Don't remove OneSignal's manifest entries and don't register a second messaging service. - Initialize both in
Application.onCreate, in any order. - Let one SDK ask for notification permission. Both read the same system setting.
- OneSignal receives its pushes through its own receiver and Firebase app; Oricato through yours. Oricato never sends OneSignal's
customkey, so OneSignal can never take an Oricato push. - Checked against OneSignal's Android SDK 5.9.9.
iOS
- Keep your notification delegate and put the two
Oricato.userNotificationCentercalls first. If OneSignal owns the delegate and you have none, callOricato.installNotificationCenterDelegate()afterOneSignal.initialize(…). - Oricato needs Firebase Messaging in the app for its token; OneSignal registers with Apple directly. Both work with the same registration. If your app only had OneSignal, add Firebase Messaging first.
- One Notification Service Extension can serve both: subclass
OricatoNotificationServiceand route other pushes to OneSignal, or hand Oricato pushes toOricatoNotificationServiceHelperfrom your existing class.
Flutter
- Keep
onesignal_flutterand addoricato_push. Each SDK gets its own Firebase registration and handles only its own pushes. - Ask for notification permission once, with either SDK.
- Optional: from this version, set a OneSignal tag such as
oricato = 1and exclude it from OneSignal sends, so only phones that haven't updated still get OneSignal pushes. - On a real iPhone, check that an Oricato tap reaches
onNotificationOpenedand OneSignal taps still open as before.
- Call
setExternalUserIdwith the same pseudonymous ID you gave OneSignal. Your scheduler can keep targeting people by it withinclude_external_user_ids. - Call
setLanguagewith the language your app shows, andsetTagswith the tags your OneSignal filters use.
Step 3 · Your phone
Send to your own phones first
Mark your phone as a test device in the dashboard's Verify setup checklist. From your scheduler, the OneSignal segment Test Users reaches only test devices.
curl https://<your-api-host>/api/v1/notifications \
-H "Authorization: Bearer <ORICATO_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"app_id": "<ORICATO_PROJECT_ID>",
"included_segments": ["Test Users"],
"headings": { "en": "Good morning", "es": "Buenos días" },
"contents": { "en": "Your five-minute lesson is ready.", "es": "Tu lección de cinco minutos está lista." }
}' Step 4 · Your server
Switch every campaign of an app at once
Change the address, the key and the app_id for every campaign of that app in one deploy, so no one gets a message from both systems. A local-time message looks the same as it did:
curl https://<your-api-host>/api/v1/notifications \
-H "Authorization: Bearer <ORICATO_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"app_id": "<ORICATO_PROJECT_ID>",
"name": "Morning lesson",
"included_segments": ["Subscribed Users"],
"headings": { "en": "Good morning", "de": "Guten Morgen", "ja": "おはようございます" },
"contents": {
"en": "Your five-minute lesson is ready.",
"de": "Deine Fünf-Minuten-Lektion ist bereit.",
"ja": "5分間のレッスンの準備ができました。"
},
"send_after": "2027-01-04 00:00:00 GMT-0500",
"delayed_option": "timezone",
"delivery_time_of_day": "8:00AM",
"data": { "type": "daily_lesson" },
"idempotency_key": "morning-lesson-2027-01-04"
}' Two rules to know before you switch: a daily limit per person (five by default) and a daily message quota per API key (500 by default). Both refuse with a plain error, never silently. Details
Step 5 · Dashboard
Watch the first sends
Before the cut-over, write down OneSignal's numbers for the same campaign on a normal day. Then open the Oricato message report: Sent, Delivered and Opened by country, language and platform, and each time-zone group as its hour arrives. Your scheduler can read the same numbers in OneSignal's shape with GET /api/v1/notifications/{id}.
- Expect Sent to be close to OneSignal's "successful" for phones that have updated. Phones on an old app version aren't in Oricato yet.
- Opens per send should look like your baseline. A big gap usually means a deep-link or tap-handler problem, not delivery.
Morning lesson 8:00 AM in each person's time zone
- Sent
- 17,877
- Delivered
- 15,210
- Opened
- 1,203
By country Sent
- USUnited States5,120
- MXMexico3,410
- ESSpain2,690
- DEGermany2,210
- BRBrazil1,980
- JPJapan1,370
- FRFrance1,097
By language Sent · Opened
| Language | Sent | Opened |
|---|---|---|
| en | 5,480 | 361 |
| es | 6,040 | 432 |
| de | 2,210 | 141 |
| pt | 1,980 | 139 |
| ja | 1,370 | 78 |
| fr | 797 | 52 |
A message report for Morning lesson in Lingora: sent 17,877, delivered 15,210, opened 1,203; bars by country for the United States, Mexico, Spain, Germany, Brazil, Japan and France; a table by language for en, es, de, pt, ja and fr. Sample data.
Step 6 · Your apps
Remove the OneSignal SDK later
When the numbers look right and most people have updated, remove the OneSignal dependency and its initialization in a later release. Nothing changes for Oricato.
02 · Rollback
Rolling back is the same three lines
Until you remove the OneSignal SDK, both systems can reach every updated phone. If something looks wrong in the first week, point the scheduler back at OneSignal's address, key and app ID, and cancel the Oricato messages that haven't started.
- People who don't update the app keep getting OneSignal pushes for as long as you send there, and nothing from Oricato until they update.
- Keep both SDKs for at least one full cycle of your campaigns before you clean up.
03 · Mapping
OneSignal ideas, in Oricato
| OneSignal | Oricato |
|---|---|
| App | A project, with its own Firebase key and API keys. |
| REST API key | An API key per app, shown once, revocable. |
| Player or subscription ID | An Oricato subscription ID, created when the phone registers with the SDK. |
| External user ID | The same: set it with setExternalUserId. |
| Tags | The same idea: setTags, up to 50 per subscriber. |
| Segments | included_segments maps six common segments; build others with filters or audiences. |
| Timezone delivery | Local-time sends, including daylight saving time and half-hour zones. |
| Frequency capping | A daily limit per person on each local day, five by default, checked when a message is scheduled. |
| Confirmed delivery | Delivered receipts from the SDK, sampled per project (all, one in ten, or none). |
04 · History
Bring your OneSignal history (Early access)
Oricato's reports start with the first message it sends. History import, part of Oricato Intelligence (early access), is designed to read your OneSignal exports or connect through a temporary import key, so send-time tests start with what you already know.
- Only devices OneSignal shows as subscribed, with a usable token, are brought over. Consent is never widened.
- Imported OneSignal subscription IDs are kept, so
include_player_idskeeps matching. - No IP addresses, locations or advertising IDs are requested or stored.
- Start exporting now. OneSignal keeps some message history for a limited time; check OneSignal's docs for the current retention on your plan.
05 · Limits
What doesn't move
Oricato covers mobile push, web push and email from one composer, with local time, languages, Autopilot and reports. Some OneSignal features have no equivalent here: journeys built in a visual flow builder, and phones without Google Play services. If you depend on those, compare honestly before you move.
Questions
Questions
Do people have to allow notifications again?
No. The permission belongs to the phone, and both SDKs read the same setting. Let one SDK ask, once.
Can we move one app first?
Yes. Move one app, test with your own devices, and keep the others sending the way they do now.
Do we keep our Firebase project?
Yes. Oricato sends through your app's own Firebase project, for Android and iOS.
Is the endpoint fully compatible?
No. It accepts the create-notification fields most schedulers use. Anything it can't do exactly is refused with a plain error.
How long should both SDKs stay in the app?
Until most of your active users have updated and the reports match your baseline. Then remove OneSignal in a normal release.