Prerequisites
- Supabase project
- PNTA account with project ID (
prj_XXXXXXXXX) - Platform keys configured in PNTA Dashboard (see Platform Keys Setup)
- Devices registered via a PNTA client SDK
Setup Steps
1. Connect Your Supabase Project
- Go to Integrations in the PNTA Dashboard
- Click Connect on the Supabase integration
- Authorize PNTA via OAuth to access your Supabase project
- PNTA will automatically set up the required PostgreSQL triggers and webhooks
PNTA uses OAuth to connect to your Supabase project. No manual database
configuration or SQL is required - everything is set up automatically.
2. Create a Notification Rule
- Once connected, go to the Supabase section in PNTA Dashboard
- Click Create Rule
- Select the table you want to monitor
- Choose the event type: insert, update, or delete
- Select a metadata field to match devices (e.g.,
user_id) - this links rows to registered devices via their metadata
3. Configure Notification Templates
Write your notification title and body using{{field}} placeholders that get filled from your row data:
- Title:
Order {{order_id}} shipped! - Body:
Hi {{customer_name}}, your order is on the way.
4. Add Conditions (Optional)
Add conditions to filter which devices receive the notification based on their metadata:- Only notify devices where metadata
roleequalsadmin - Only notify devices where metadata
regionequalseu - Combine multiple conditions for precise targeting
Resources
Supabase
Learn more about Supabase