π Push Notification System
π― Purpose
This module allows Admin to:
Send push notifications to Customer App users
Send push notifications to Vendor App users
Send immediately or schedule for later
π§ Step-By-Step Walkthrough
β Step 1: Navigate to Push Notifications
Go to:
Admin Panel β Push Notifications
You will see 3 tabs:
Compose
History
Scheduled
βοΈ Step 2: Compose Notification
Click Compose tab.
You will see:
Title *
Body *
Image URL (Optional)
Target App *
Audience *
Schedule toggle
Send Now button
Live Preview panel
π· Step 3: Enter Notification Title
Enter a short headline.
Example:
βLimited Time Offerβ
βOrder Successfully Pickedβ
β Title is mandatory.
π Step 4: Enter Notification Body
Write the message content.
Example:
βSell your old phone today and get instant cash.β
βYour pickup has been confirmed.β
β Body is mandatory.
Live Preview updates automatically.
πΌ Step 5: (Optional) Add Image URL
If required, paste image link:
https://example.com/banner.jpg
If empty β Normal text notification is sent.
π± Step 6: Select Target App
Choose where notification should go:
Customer App
Vendor App
Example Use:
Offer β Customer App
Order assignment β Vendor App
β This is mandatory.
π₯ Step 7: Select Audience
Choose:
1οΈβ£ All Users
Notification sent to all users.
2οΈβ£ Topic
Sent only to users subscribed to specific topic.
3οΈβ£ Specific Users
Send to selected user IDs.
β° Step 8: Choose Send Type
Option A: Send Now
Keep Schedule toggle OFF
Click Send Now
Notification sent immediately
Option B: Schedule for Later
Turn ON Schedule toggle
Select Date & Time
Save
Notification will auto-send at selected time
β Cannot select past time.
π Step 9: Click Send Now
When clicked:
System validates required fields
Creates notification record
Sends push via FCM/APNS
Saves entry in History
π History Tab
Shows:
Title
Target App
Audience
Date & Time
Status (Sent / Failed)
Used for tracking past campaigns.
π Scheduled Tab
Shows:
Upcoming notifications
Scheduled date/time
Option to edit or cancel (if supported)
π Live Preview Panel
Right side shows:
How notification looks on mobile
Target app selected
Audience selected
Helps verify before sending.
βοΈ Behind the Scenes Flow
Admin clicks Send βBackend validates data βPush request sent to FCM/APNS βNotification delivered to selected app
π§ͺ How the Push Notification Works?