Prompt
How do I set up push notification templates?
Latest observation
Oct 14, 2026
OpenAI APIWeb search: off
Setting up push notification templates depends on which platform or service you’re using, but the general process is usually:
-
Choose a push provider
- Examples: Firebase Cloud Messaging (FCM), Apple Push Notification service (APNs), OneSignal, Braze, Airship, AWS SNS, etc.
-
Create a template in the provider dashboard or your app
- Define the message structure you want to reuse.
- Typical fields:
- Title
- Body
- Image/icon
- Deep link / URL
- Action buttons
- Custom data payload
-
Add variables/placeholders
- Use placeholders for dynamic content, like:
{{first_name}}{{order_number}}{{product_name}}
- Example:
- Title:
Hi {{first_name}} - Body:
Your order #{{order_number}} has shipped.
- Title:
- Use placeholders for dynamic content, like:
-
Configure targeting and conditions
- Decide who receives the template:
- all users
- a segment
- users with specific tags
- users on iOS/Android/web
- Decide who receives the template:
-
Test the template
- Send a test push to your device or a test segment.
- Verify the variables resolve correctly and links/actions work.
-
Schedule or trigger it
- Manual send
- Automated trigger based on events like:
- purchase completed
- cart abandoned
- account created
- delivery status changed
-
Validate payload formatting
- Different platforms expect different payload formats.
- Make sure your template maps correctly to APNs/FCM/web push requirements.
Example template:
{
"title": "Hi {{first_name}}",
"body": "Your order #{{order_number}} is on the way.",
"data": {
"type": "order_update",
"order_id": "{{order_id}}"
}
}
If you want, I can give you:
- a platform-specific guide for FCM, APNs, or OneSignal, or
- an example of how to create push templates in code or a dashboard.