SupaKnock
Menu
Browse topics iPhone notifications and relay
← Developer reference

Connect your app

iPhone notifications and relay

Connect administrator push notifications to the SupaKnock companion.

SupaKnock’s push relay is at https://relay.supaknock.com. It sends optional notifications to the iPhone admin app, which is coming soon. The setup below is for people with access to the app. Feedback, chat and your app’s API requests still go to your own SupaKnock server.

  1. On your server, open Admin → Push notifications.
  2. Use https://relay.supaknock.com as the relay URL and enable push. Enter just this origin, without /api/v1.
  3. Sign in to your server in the iPhone app, allow notifications and save your device preferences.

To enable push through the API, send this request to your installation. SUPAKNOCK_ADMIN_TOKEN is the ns_ session returned by native administrator sign-in. Project API keys cannot change push settings.

curl -X PUT "$SUPAKNOCK_URL/api/v1/admin/push" \
  -H "Authorization: Bearer $SUPAKNOCK_ADMIN_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"enabled":true,"relay_url":"https://relay.supaknock.com"}'

Your server enrolls with the relay and stores its credential encrypted. The iPhone app connects to your server; it never receives the relay credential. Notifications use generic text without feedback titles or chat messages. Push is off by default, and feedback and chat work without it.

You can also run your own compatible relay. Choose its HTTPS origin before enabling push: an enrolled installation cannot switch to a different relay through this setting. Existing connections to suggestion-box-relay.doomo.dev remain supported.

Read settings with GET /api/v1/admin/push and inspect attempts with GET /api/v1/admin/push/deliveries, both on your installation. Delivery history reports whether Apple accepted a notification, not whether it appeared on the phone.

These docs describe the current source. Check your server’s /api/v1/openapi.json for the version you run.