MigrateEarly accessDesigned and in development. No results yet. See what's left on the roadmap.
Migrate from OneSignal: endpoint and SDK swap
Early access · launching soon. This guide moves an app from OneSignal to Oricato without sending anyone the same notification twice. It has two phases:
- Server first. Your scheduler keeps sending OneSignal-shaped requests. You change the base URL, the key and the
app_id, and the OneSignal-compatible endpoint does the rest. - Then the apps. You ship one app release with both SDKs, move each campaign over, and remove the OneSignal SDK in a later release.
The rule behind every step: a phone gets each notification from one system only.
The examples use a sample app, Lingora (com.lingora.app). Replace <ORICATO_API_ADDRESS> and
<ORICATO_PROJECT_ID> with the API address and Project ID from your dashboard.
Prerequisites
- An Oricato project for the app (one project per app; Android and iOS share it). Its Project ID is a UUID, shown in Dashboard → your project → Settings → Add Oricato to your app.
- A Firebase key for the app’s own Firebase project, uploaded in the dashboard and shown as working. Use a dedicated service account with only the role Firebase Cloud Messaging API Admin. See Firebase and APNs credentials.
- For iPhones: your APNs auth key (
.p8) uploaded in Firebase → Project settings → Cloud Messaging. - An Oricato REST API key (a 44-character secret), created in Project settings → API keys. It is shown once, so copy it when it appears. Keep it on your servers, never in an app.
- The Oricato SDK kit, version 1.0.1, for phase 2.
Phase 1: Point your scheduler at Oricato
The OneSignal-compatible endpoint accepts the OneSignal fields most schedulers use and answers in OneSignal’s response shapes, so code that reads the responses keeps working. Three routes exist:
| Method and path | What it does |
|---|---|
POST /api/v1/notifications |
Creates and schedules a notification. |
GET /api/v1/notifications/{notification_id}?app_id=… |
Returns its delivery numbers in OneSignal’s shape. |
DELETE /api/v1/notifications/{notification_id}?app_id=… |
Cancels it, if it hasn’t been sent yet. |
On GET and DELETE, app_id is optional, but when you pass it, it must be the key’s Project ID.
Step 1: Change three things
- Base URL. Replace your OneSignal URL with
<ORICATO_API_ADDRESS>/api/v1. The compatible path is<ORICATO_API_ADDRESS>/api/v1/notifications. - Key. Replace the OneSignal REST API key with your Oricato API key. The endpoint accepts all three header
forms your scheduler may send:
Authorization: Key <ORICATO_API_KEY>,Authorization: Basic <ORICATO_API_KEY>andAuthorization: Bearer <ORICATO_API_KEY>. Send the raw key, not base64. app_id. Replace the OneSignal app ID with your Oricato Project ID. The key decides the project, andapp_idmust match it.
- curl https://onesignal.com/api/v1/notifications \
- -H "Authorization: Basic <ONESIGNAL_REST_API_KEY>" \
+ curl <ORICATO_API_ADDRESS>/api/v1/notifications \
+ -H "Authorization: Bearer <ORICATO_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
- "app_id": "<ONESIGNAL_APP_ID>",
+ "app_id": "<ORICATO_PROJECT_ID>",
"included_segments": ["Subscribed Users"],
"headings": { "en": "Your weekly summary is ready" },
"contents": { "en": "See what changed in Lingora this week." }
}'
Everything else in the body stays as it is.
Step 2: Send a first test to your test devices
Before you point real campaigns at Oricato, send to the Test Users segment. In Oricato it targets only the
subscriptions you marked as test devices (Dashboard → project → Verify setup → Mark as test device).
curl <ORICATO_API_ADDRESS>/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": "Hello from Oricato" },
"contents": { "en": "Your scheduler now sends through Oricato." }
}'
A success is 200 with a OneSignal-shaped body:
{ "id": "0192f0c4-3b7e-7a51-9b1e-2d6f4f0e8a10", "recipients": 1, "external_id": null }
id is the Oricato message ID. recipients is the audience counted when the message was created. A warnings
array appears only when the endpoint ignored or adjusted something.
Step 3: Check your fields against the mapping
The endpoint maps each field exactly or refuses the request with a clear 400. Fields that aren’t listed are
ignored, and each one is named in warnings (Field 'x' is not supported and was ignored), so nothing disappears
silently.
| OneSignal field | Type | How Oricato uses it |
|---|---|---|
app_id |
UUID string | Required. Must equal the key’s Project ID, otherwise 400 “app_id does not match the API key”. |
contents |
object of language to text | Required, not empty. The text per language. Codes are normalized (pt-BR becomes pt, zh-Hans becomes zh-hans); if two keys normalize to the same code, the first in sorted order wins and a warning is added. A code that can’t be normalized is refused with 400 “Language ‘x’ is not supported”. |
headings |
object of language to text | Titles per language. A language with no contents entry is dropped with a warning (“headings: ‘x’ has no contents and was ignored”). |
subtitle |
object of language to text | Subtitles per language. A language with no contents entry is dropped with a warning, as for headings. |
name |
string | The message name your team sees, truncated to 200 characters. |
included_segments |
string array | See Segments. |
include_subscription_ids, include_player_ids |
string array | Oricato subscription IDs. |
include_external_user_ids, include_aliases.external_id |
string array | External user IDs set with setExternalUserId. Other alias labels are refused. |
filters |
object array | See Filters. |
send_after |
string | Start time. See Time formats. Absent means now. |
delayed_option |
string | timezone sends at a local time in each subscriber’s own time zone (needs delivery_time_of_day). immediate or absent sends now or at send_after. last-active is refused. |
delivery_time_of_day |
string | 9:00AM, 9:00 AM, 09:00, 21:45 or 9AM. |
data |
object | Extra data for your app (additionalData in the SDKs). Values that aren’t strings become JSON text: 3 becomes "3", true becomes "true". |
url, app_url |
string | Where a tap leads. app_url wins over url; web_url is ignored. The scheme must be https, http or one of the project’s allowed link schemes. |
big_picture |
string | The image. |
ios_attachments |
object of ID to URL | Used as the image when big_picture is absent (first value in sorted key order). |
android_channel_id |
string | Used when a channel with that ID exists in the project; otherwise ignored with a warning. |
priority |
integer | 7 or more sends with high priority on Android, below 7 with normal priority. |
ttl |
integer, seconds | Clamped to 0 through 2,419,200 (28 days), with a warning when clamped. Default: 14,400 (4 hours) for delayed_option: timezone, otherwise 86,400 (24 hours). 0 is valid and means “deliver now or never”; it does not mean “use the default”. |
isAndroid, isIos |
boolean | false leaves that platform out. Both false is a 400. |
small_icon |
string | The Android small icon resource name. |
ios_sound |
string | The iOS sound (nil means no sound). |
ios_badgeType, ios_badgeCount |
string, integer | None, SetTo or Increase, with the count. |
collapse_id |
string | A newer message with the same ID replaces the older one. |
idempotency_key, external_id |
string | Idempotency key, 1 to 128 printable ASCII characters (accented or other non-ASCII characters are refused). See Idempotency. |
The default language is the project’s default language if it appears in contents, else en if present, else the
first key in sorted order.
Use one targeting method per request, as in OneSignal: included_segments, filters, or IDs. A request with
none, or with segments, filters and IDs mixed, is refused. Within IDs, include_subscription_ids and
include_player_ids are merged into one list, and so are include_external_user_ids and
include_aliases.external_id. The only ID mix that is refused is subscription IDs together with external user IDs
(400 “Use either subscription ids or external user ids, not both.”).
Segments
Oricato has no OneSignal segments. The endpoint maps the built-in segment names to an equivalent audience:
included_segments value |
Oricato audience |
|---|---|
All, Subscribed Users, Total Subscriptions |
Everyone in the project |
Test Users |
Test devices only. Can’t be combined with other segments. |
Active Users |
Active in the last 7 days |
Engaged Users |
Active in the last 1 day |
| Any other name | 400 “Segment ‘name’ is not supported” |
When you combine segments, an “everyone” segment wins over the others (with a warning), and Active Users together
with Engaged Users means 7 days. If your scheduler uses custom segments, rewrite them as filters, or build the
audience in the dashboard.
Filters
Filters follow OneSignal’s semantics: entries are combined with AND, and {"operator": "OR"} splits the list into
OR-groups. Three fields are supported:
| Field | Relations | Value |
|---|---|---|
country |
=, != |
ISO 3166-1 alpha-2 code, such as BR |
language |
=, != |
Language code, such as es |
tag |
=, !=, exists, not_exists |
Compared as a string; key is required |
{
"app_id": "<ORICATO_PROJECT_ID>",
"filters": [
{ "field": "country", "relation": "=", "value": "BR" },
{ "field": "tag", "key": "plan", "relation": "=", "value": "pro" },
{ "operator": "OR" },
{ "field": "country", "relation": "=", "value": "MX" },
{ "field": "tag", "key": "plan", "relation": "=", "value": "pro" }
],
"headings": { "en": "New features", "es": "Nuevas funciones", "pt": "Novos recursos" },
"contents": {
"en": "Three new tools are ready in Lingora.",
"es": "Tres herramientas nuevas ya están en Lingora.",
"pt": "Três novas ferramentas já estão no Lingora."
}
}
The filters are accepted only when Oricato can express them exactly:
- One group: each
=oncountryorlanguageadds to that field’s include list, each!=adds to its exclude list, and eachtagentry becomes one tag condition. Two different=values for the same field in one group are refused with “Filter can never match”. - Several OR-groups: all groups must be identical except for exactly one
=condition on the same field,countryorlanguage. The example above qualifies: it becomes “country is BR or MX, and tagplan=pro”. - Anything else is refused with
400“Filter ‘field relation’ is not supported by Oricato”, for examplelast_session,app_version, or>and<on tags. An OR that can’t be expressed (such as OR across different fields, or OR over tags) is refused with “Filter ‘OR’ is not supported by Oricato for these conditions”.
A list can have at most 200 entries, counting conditions and OR operators.
Time formats
send_after accepts these formats (the first match wins):
| Format | Example |
|---|---|
| RFC 3339 | 2026-11-02T09:00:00+01:00, 2026-11-02T08:00:00Z |
Date, time and GMT offset |
2026-11-02 09:00:00 GMT+0100 |
Date, time and UTC |
2026-11-02 08:00:00 UTC |
| Date, time and numeric offset | 2026-11-02 09:00:00 +0100 |
JavaScript Date.toString() |
Mon Nov 02 2026 09:00:00 GMT+0100 (Central European Standard Time) |
| Day without a leading zero | Mon Nov 2 2026 09:00:00 GMT+0100 |
A time without a time zone is refused. A send_after in the past sends now, as in OneSignal.
To deliver at the same local hour in every subscriber’s time zone, combine delayed_option and
delivery_time_of_day. Here send_after is the start of the local-time window: each person gets the message at the
first 9:00 AM in their own time zone at or after that instant.
{
"app_id": "<ORICATO_PROJECT_ID>",
"name": "Weekly summary",
"included_segments": ["Subscribed Users"],
"headings": { "en": "Your weekly summary", "ja": "今週のまとめ" },
"contents": { "en": "See what changed this week.", "ja": "今週の変更点をチェックしましょう。" },
"send_after": "2026-11-02 00:00:00 UTC",
"delayed_option": "timezone",
"delivery_time_of_day": "9:00AM",
"data": { "screen": "summary" },
"idempotency_key": "weekly-summary-2026-11-02"
}
Idempotency
Send idempotency_key (or OneSignal’s external_id) so a retried request never sends twice. Within 30 days, a
repeat with the same key and an identical body returns the original message instead of creating a new one. The same
key with a different body is refused with 400. When you send external_id, the response echoes it back.
Responses and errors
Responses keep OneSignal’s shapes, not Oricato’s REST error envelope:
| Status | Body |
|---|---|
200 |
{ "id": "…", "recipients": 17877, "external_id": null }, plus "warnings": [...] only when not empty |
400 |
{ "errors": ["…"] }, one plain sentence per problem, for example “Message Notifications must have English language content” when contents is missing |
403 |
{ "errors": ["Please include a case-sensitive header of Authorization: Key <key> with a valid REST API key."] } for a missing, malformed, unknown or revoked key (OneSignal uses 403 here, so Oricato does too). { "errors": ["This app is archived in Oricato."] } when the key’s project is archived. |
429 |
{ "errors": ["API rate limit exceeded"] } or { "errors": ["Daily message quota for this API key reached"] }. Both send a Retry-After header; for the quota it counts down to the next UTC midnight. |
500, 503 |
{ "errors": ["Internal server error"] } |
Two rules apply that your scheduler may not have met before:
- Daily limit per person. A message that would give people more notifications on one local day than the project
allows is refused with
400: “Daily limit reached: people in X would get N notifications on DATE (limit C)”. X is a country when one is known, otherwise a time zone or “some timezones”. API keys can’t override it. - Daily quota per key. Each key creates at most its daily quota of messages per UTC day (500 by default; set per key). A scheduler that plans a month ahead usually creates 90 to 150 messages per app.
Step 4: Read results and cancel
curl "<ORICATO_API_ADDRESS>/api/v1/notifications/0192f0c4-3b7e-7a51-9b1e-2d6f4f0e8a10?app_id=<ORICATO_PROJECT_ID>" \
-H "Authorization: Bearer <ORICATO_API_KEY>"
{
"id": "0192f0c4-3b7e-7a51-9b1e-2d6f4f0e8a10",
"app_id": "<ORICATO_PROJECT_ID>",
"successful": 17877, "failed": 134, "errored": 0, "converted": 1203,
"remaining": 0, "received": 15210,
"queued_at": 1793577600, "send_after": 1793577600, "completed_at": 1793653500,
"canceled": false,
"headings": { "en": "Your weekly summary" },
"contents": { "en": "See what changed this week." },
"name": "Weekly summary",
"platform_delivery_stats": {
"android": { "successful": 15002, "failed": 100, "converted": 1000 },
"ios": { "successful": 2875, "failed": 34, "converted": 203 }
}
}
Times are Unix seconds, and completed_at is null while the message is still sending. successful counts sends
accepted by FCM, received counts delivery receipts, and converted counts opens. An unknown ID returns 404
{ "errors": ["Notification not found"] }.
To cancel a message that hasn’t gone out:
curl -X DELETE "<ORICATO_API_ADDRESS>/api/v1/notifications/0192f0c4-3b7e-7a51-9b1e-2d6f4f0e8a10?app_id=<ORICATO_PROJECT_ID>" \
-H "Authorization: Bearer <ORICATO_API_KEY>"
The response is 200 {"success": true}, or 400 “Notification has already been sent”. An unknown or malformed ID
returns 404 { "errors": ["Notification not found"] } here too.
Messages created through this endpoint appear in the dashboard like any other message, with the key’s name as the creator.
Phase 2: Swap the SDK in your apps
You don’t remove OneSignal first. Ship one release with both SDKs, move sending over, and remove OneSignal in a
later release. The two SDKs don’t touch each other’s pushes: Oricato pushes carry fx_id and fx_v, OneSignal
pushes carry custom, and each SDK acts only on its own.
Step 5: Add Oricato next to OneSignal on Android
On Android the two SDKs receive Firebase Cloud Messaging through different paths:
| OneSignal 5.x | Oricato | |
|---|---|---|
| How pushes arrive | com.onesignal.notifications.receivers.FCMBroadcastReceiver, a receiver for the ordered broadcast com.google.android.c2dm.intent.RECEIVE with android:priority="999". It has no FirebaseMessagingService. |
Firebase’s receiver, then your FirebaseMessagingService (OricatoMessagingService or your own service that delegates). |
| Which pushes it takes | Only bundles with a custom key whose JSON has an i field. It aborts the broadcast for those, so Firebase and Oricato never see them. |
Only data with fx_id and fx_v for this project (fx_pid). Everything else goes to your code and is never rendered by Oricato. |
| FCM token | Its own secondary FirebaseApp with its own token. |
The default FirebaseApp from google-services.json, with its own token. |
| Tap handling | OneSignal’s own activities. | OricatoOpenActivity (not exported). |
-
Keep
com.onesignal:OneSignal5.x exactly as it is. Don’t remove its manifest entries. -
Add the SDK from the kit’s local Maven repository and
google-services.jsonfrom the app’s Firebase project. Copy the kit’sandroid/mavenfolder into your project asoricato-maven/and declare it, plus the Google Services plugin, insettings.gradle.kts(full details in the Android quickstart):// settings.gradle.kts dependencyResolutionManagement { repositories { google() mavenCentral() maven { url = uri("oricato-maven") } // relative to settings.gradle.kts, or an absolute path } } // settings.gradle.kts / root build.gradle.kts plugins { id("com.google.gms.google-services") version "4.4.2" apply false }// app/build.gradle.kts plugins { id("com.android.application") id("com.google.gms.google-services") } dependencies { implementation(platform("com.google.firebase:firebase-bom:33.16.0")) // 34.x needs minSdk 23 implementation("com.google.firebase:firebase-messaging") implementation("com.oricato:push:1.0.1") } -
Declare Oricato’s messaging service in
app/src/main/AndroidManifest.xml, inside<application>. OneSignal doesn’t use aFirebaseMessagingService, so without this entry Oricato pushes are never handled:<service android:name="com.oricato.push.OricatoMessagingService" android:exported="false"> <intent-filter> <action android:name="com.google.firebase.MESSAGING_EVENT" /> </intent-filter> </service>If the app already has a
FirebaseMessagingService, keep it and delegate instead. Don’t register a secondMESSAGING_EVENTservice:class MyMessagingService : FirebaseMessagingService() { override fun onMessageReceived(message: RemoteMessage) { if (Oricato.handleRemoteMessage(this, message)) return // an Oricato push: handled // ... your own pushes } override fun onNewToken(token: String) { Oricato.onNewToken(this, token) // ... your own token handling } } -
Initialize both SDKs in
Application.onCreate. The order doesn’t matter:class App : Application() { override fun onCreate() { super.onCreate() // OneSignal initialization stays as it is. Oricato.initialize( this, projectId = "<ORICATO_PROJECT_ID>", apiBaseUrl = "<ORICATO_API_ADDRESS>", defaultSmallIcon = R.drawable.ic_stat_notification, ) } }
Full setup, including the notification icon and resources: Android quickstart.
Step 6: Add Oricato next to OneSignal on iOS
-
Add the
OricatoPushpackage from the kit (Xcode → File → Add Package Dependencies… → Add Local…) and add the productOricatoPushto the app target. -
Call
Oricato.initialize(projectId: "<ORICATO_PROJECT_ID>", apiBaseURL: "<ORICATO_API_ADDRESS>")indidFinishLaunchingWithOptions, and pass the FCM token from Firebase Messaging:func messaging(_ messaging: Messaging, didReceiveRegistrationToken fcmToken: String?) { Oricato.setFCMToken(fcmToken) }OneSignal registers with APNs directly and Oricato uses the FCM token. Both work with the same APNs registration.
-
Delegate. Keep your
UNUserNotificationCenterDelegateand put the two Oricato calls at the top of its methods. They returnfalsefor pushes that aren’t Oricato’s, so OneSignal’s handling keeps working:func userNotificationCenter( _ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void ) { if Oricato.userNotificationCenter(center, willPresent: notification, withCompletionHandler: completionHandler) { return } completionHandler([.banner, .list, .sound]) // your other notifications } func userNotificationCenter( _ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void ) { if Oricato.userNotificationCenter(center, didReceive: response, withCompletionHandler: completionHandler) { return } completionHandler() // your other notifications }If OneSignal owns the delegate and you have none of your own, call
Oricato.installNotificationCenterDelegate()afterOneSignal.initialize(…). Its proxy forwards every non-Oricato notification to OneSignal’s delegate. -
Shared Notification Service Extension. An existing OneSignal extension can serve both systems. Add the product
OricatoPushNotificationServiceto the extension target, subclassOricatoNotificationService, and pass the other pushes to OneSignal:import UserNotifications import OricatoPushNotificationService import OneSignalExtension class NotificationService: OricatoNotificationService { private var contentHandler: ((UNNotificationContent) -> Void)? private var receivedRequest: UNNotificationRequest? private var bestAttemptContent: UNMutableNotificationContent? override func didReceiveOtherNotification( _ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void ) { self.receivedRequest = request self.contentHandler = contentHandler self.bestAttemptContent = request.content.mutableCopy() as? UNMutableNotificationContent if let bestAttemptContent = bestAttemptContent { OneSignalExtension.didReceiveNotificationExtensionRequest( request, with: bestAttemptContent, withContentHandler: contentHandler) } } override func otherNotificationTimeWillExpire() { if let contentHandler = contentHandler, let request = receivedRequest, let content = bestAttemptContent { OneSignalExtension.serviceExtensionTimeWillExpireRequest(request, with: content) contentHandler(content) } } }If you’d rather keep your extension class, route Oricato pushes to
OricatoNotificationServiceHelperinstead (one helper per push):private var oricato: OricatoNotificationServiceHelper? override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) { let helper = OricatoNotificationServiceHelper() // reads OricatoApiBaseURL from Info.plist if helper.didReceive(request, withContentHandler: contentHandler) { oricato = helper; return } // … the existing OneSignal code … } override func serviceExtensionTimeWillExpire() { if oricato?.serviceExtensionTimeWillExpire() == true { return } // … the existing OneSignal code … }Either way, add the key
OricatoApiBaseURL(String) =<ORICATO_API_ADDRESS>to the extension’sInfo.plist, and in the app callOricato.setDeliveryReportedByExtension(true)afterOricato.initialize(…).
Full setup: iOS quickstart.
Step 7: Add Oricato next to onesignal_flutter
-
Add
oricato_pushfrom the kit (copyflutter/oricato_pushinto your repository and usepath: packages/oricato_pushinpubspec.yaml). Keeponesignal_flutteras it is. -
Wire the background handler and initialize Oricato in
main():@pragma('vm:entry-point') Future<void> firebaseMessagingBackgroundHandler(RemoteMessage message) async { if (await Oricato.handleBackgroundMessage(message)) return; // … your own background handling for other pushes … } Future<void> main() async { WidgetsFlutterBinding.ensureInitialized(); await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform); FirebaseMessaging.onBackgroundMessage(firebaseMessagingBackgroundHandler); await Oricato.initialize( '<ORICATO_PROJECT_ID>', '<ORICATO_API_ADDRESS>', options: const OricatoInitOptions( defaultSmallIcon: 'ic_stat_notification', ), ); runApp(const MyApp()); }Each SDK gets its own FCM registration and handles only its own pushes:
handleBackgroundMessagereturnsfalsefor anything withoutfx_idandfx_v. Notification channels don’t collide, because Oricato’s channels come from your dashboard and its fallback channel isfx_default. -
On iOS, both SDKs take part in notification-delegate handling. Check on a real iPhone that tapping an Oricato notification reaches
onNotificationOpenedand that OneSignal notifications still open as before.
Full setup: Flutter quickstart.
Step 8: Ask for notification permission once
Let one SDK show the permission prompt. Keep OneSignal’s prompt for now, or switch to Oricato’s
requestPermission, but don’t show both. Both SDKs read the same system permission, and Oricato reports a grant
from any prompt as soon as the dialog closes. See Notification permission.
Cut-over checklist
Follow these steps in order for each app.
- Prepare. Create the project, upload the Firebase key and check that the dashboard says it works. Create an API key for your scheduler.
- Add Oricato next to OneSignal. Leave OneSignal exactly as it is (steps 5 to 7).
- Ask for permission once (step 8).
- Test on your own phone. Dashboard → project → Verify setup → Send test notification → Mark as test device.
- Release the version with both SDKs. A staged rollout is safest.
- Send each campaign to both systems, never to the same people. Send it to Oricato, which only reaches devices
that already run the new version. Send it to OneSignal with a filter that excludes the new app version, or set a
OneSignal tag such as
oricato = 1from the new version (with the OneSignal SDK’s tag API) and exclude that tag from OneSignal sends. That way only devices that haven’t updated get the OneSignal copy. - Compare the numbers. For the same campaign, compare sent, delivered and opened in the Oricato dashboard and in OneSignal, and watch Oricato’s subscriber count grow as people update.
- Stop sending through OneSignal once Oricato reaches most of your active users, for example 90%.
- Remove the OneSignal SDK in a later release. On iOS, also remove the OneSignal branch of the extension. Nothing changes for Oricato.
Warning: Never send the same campaign from both systems to the same people. A device with both SDKs installed would show it twice.
Verify it works
- Compatible endpoint: a
POSTto<ORICATO_API_ADDRESS>/api/v1/notificationswith theTest Userssegment returns200with anidandrecipientsof at least 1, and the notification arrives on your test device. - Results: a
GETfor thatidshowssuccessfulof at least 1 and, once a receipt comes in,received. Delivery receipts come only from the devices the project samples, and on iOS only with the Notification Service Extension installed, soreceivedcan be lower thansuccessful. - Dashboard: the message appears in the project’s message list with your API key’s name as the creator.
- No duplicates: on a phone with both SDKs, a campaign sent with the cut-over rules in step 6 of the checklist shows one notification, and tapping it opens the app as expected.
- Both systems still work: a OneSignal test send to the same phone still arrives and opens through OneSignal.
Troubleshooting
400 “app_id does not match the API key”
The app_id in the body (or in the GET/DELETE query) isn’t the Project ID of the project the key belongs to.
Copy the Project ID from Settings → Add Oricato to your app, and make sure the key was created in that same
project.
403 “Please include a case-sensitive header of Authorization…”
The key is missing, unknown or revoked. Send the raw API key after Key, Basic or Bearer, not a base64
string and not your OneSignal key.
400 “Segment ‘name’ is not supported”
Only All, Subscribed Users, Total Subscriptions, Test Users, Active Users and Engaged Users are mapped.
Rewrite custom segments as filters or build the audience in the dashboard.
400 “Filter ‘field relation’ is not supported by Oricato”
Only country, language and tag filters are supported, with the relations listed in Filters. OR
works only between groups that differ in one country or language value.
400 “Link scheme ‘x’ is not allowed”
A url or app_url with an app scheme (such as oricatodemo://) must be allowed first: Project settings → Sending → App link schemes. (The error text still says “Allowed
link schemes”; it is the same setting.)
403 “This app is archived in Oricato.”
The key is valid, but its project is archived. Restore the project in the dashboard, or use a key of an active
project.
android_channel_id is ignored
The response warns “android_channel_id ‘x’ does not exist in this app and was ignored”. The channel must exist in
the project’s channel list in the dashboard. Android channels are fixed once a device creates them: to change a
sound or vibration, create a channel with a new ID, add it to the project, and send with the new ID. See
Android notification channels.
People get the same notification twice
Both systems targeted the same devices. Exclude the new app version (or the oricato = 1 tag) from every OneSignal
send, and check that the old scheduler job doesn’t still send to OneSignal after you switched it to Oricato.
Oricato pushes never show on Android, but OneSignal’s do
The manifest is missing com.oricato.push.OricatoMessagingService, or your own FirebaseMessagingService doesn’t
call Oricato.handleRemoteMessage. OneSignal’s receiver doesn’t pass Oricato pushes to you; Oricato needs its own
service entry.
The device never appears in Verify setup on Android If logcat shows Firebase Installations “BAD CONFIG” and the FCM token is null, the Android API key in your Firebase project is restricted to Android apps without your app’s SHA-1 certificate fingerprint. Add the SHA-1 of every signing key (debug, release and Play App Signing) to the key’s restrictions in Google Cloud Console.
iOS sends fail with apns_auth_error
Firebase has no valid APNs auth key for the app. Upload your .p8 key in Firebase → Project settings → Cloud
Messaging, then send again.
Notifications arrive without sound on some Android phones Some manufacturer skins, such as TECNO HiOS, demote app notifications to silent by default. Check the app’s notification settings on that device. See Troubleshooting delivery.
FAQ
Do people have to allow notifications again? No. The permission belongs to the app on the phone, and both SDKs read the same setting. Let one SDK ask, once.
Can I keep my OneSignal scheduler code?
Yes. Change the base URL, the key and the app_id; the OneSignal-compatible endpoint accepts the same request
shape and answers in OneSignal’s response format.
Will anyone get the same notification twice during the switch? Not if each phone is targeted by one system only. Exclude the new app version from OneSignal sends before you send to it from Oricato.
Next steps
- REST API quickstart: use Oricato’s own REST API once the migration is done.
- Android quickstart and iOS quickstart: the full SDK setup for each platform.