Add Push Notifications to Your App
Re-engage users with targeted messages. Send sale alerts, order updates, and personalized content directly to their phones.
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)
Create OneSignal Account
Sign up at onesignal.com (free tier: up to 10,000 subscribers).
Go to OneSignal →Create a New App in OneSignal
Click 'New App/Website', name it, and select 'Google Android (FCM)' platform.
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 →Configure OneSignal with Firebase
Upload the service-account JSON file in OneSignal's Google Android (FCM) configuration.
Copy Your OneSignal App ID
In OneSignal Dashboard → Settings → Keys & IDs → Copy the 'OneSignal App ID' (UUID format).
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxPaste 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.