Skip to content
Push Notifications

Add Push Notifications to Your App

Re-engage users with targeted messages. Send sale alerts, order updates, and personalized content directly to their phones.

Free up to 10K subscribers
Android website and Shopify apps

What Can You Send?

Sale Alerts

"Flash sale starting! 50% off for the next 2 hours."

Abandoned Cart

"You left items in your cart. Complete your order now!"

Order Updates

"Your order #1234 has been shipped. Track your delivery."

New Content

"New blog post: 10 tips for better productivity."

Android Setup (OneSignal + Firebase)

1

Create OneSignal Account

Sign up at onesignal.com (free tier: up to 10,000 subscribers).

Go to OneSignal →
2

Create a New App in OneSignal

Click 'New App/Website', name it, and select 'Google Android (FCM)' platform.

3

Get Firebase Service Account Key

In Firebase Console: Project Settings → Service accounts → Generate new private key (downloads a service-account .json file).

Open Firebase Console →
4

Configure OneSignal with Firebase

Upload the service-account JSON file in OneSignal's Google Android (FCM) configuration.

5

Copy Your OneSignal App ID

In OneSignal Dashboard → Settings → Keys & IDs → Copy the 'OneSignal App ID' (UUID format).

xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
6

Paste into Code2Native Project

In Code2Native: open Push in the sidebar, choose the app, paste the App ID and save. Then rebuild the Android app.

iOS: push is not available

iOS builds from Code2Native do not include push notifications: the OneSignal SDK is not part of the iOS app, and IPAs are signed without Apple's push entitlement (aps-environment). A OneSignal App ID saved for the app does not change that. Push works in the Android builds of website and Shopify apps.

Ready to Send Your First Notification?

Open Push in the dashboard sidebar and choose your app.