Skip to main content

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

  1. Go to Integrations in the PNTA Dashboard
  2. Click Connect on the Supabase integration
  3. Authorize PNTA via OAuth to access your Supabase project
  4. 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

  1. Once connected, go to the Supabase section in PNTA Dashboard
  2. Click Create Rule
  3. Select the table you want to monitor
  4. Choose the event type: insert, update, or delete
  5. 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.
Placeholders map directly to column names in your table.

4. Add Conditions (Optional)

Add conditions to filter which devices receive the notification based on their metadata:
  • Only notify devices where metadata role equals admin
  • Only notify devices where metadata region equals eu
  • Combine multiple conditions for precise targeting
These are just examples — you can use the default device system identifiers or your own custom metadata.

Resources

Supabase

Learn more about Supabase