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: Project Settings → OneSignal App ID → Paste and Save. Then rebuild your app.
iOS Push Notifications (Additional Steps)
- You need an Apple Developer Account ($99/year)
- Create an APNs Authentication Key in Apple Developer Portal
- Upload the .p8 key file to OneSignal
- Complete the iOS setup in Code2Native (see iOS Setup Guide)
Ready to Send Your First Notification?
Configure push notifications in your project settings.