Skip to content

Send a notification

Ynch sends you two kinds of notification:

  • Build notices: “New build ready for approval (Your App)” when a draft is uploaded. These arrive in Studio, by email and on your iPhone, with nothing to set up.
  • App messages: a line of text your own server sends, shown on your iPhone under your app’s name. This tutorial sets one up.

An app message always goes to the app’s owner. Apps have one owner today.

Open the Ynch app while signed in and allow notifications when it asks.

In Studio, open your project’s Settings and choose Send test under App notifications. “This is a test notification.” should arrive on your phone within a few seconds.

Still in Settings, choose Create notification key. Studio shows the key once: copy it and keep it on your server. Do not put it in your app’s files.

The key allows one thing: sending a line of text to you as this app.

Terminal window
curl -X POST https://studio.ynch.ai/notify/v1/projects/YOUR_PROJECT_ID \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"New questions added!"}'

Your phone shows the app’s name as the title and your text beneath it. The message is also listed under Notifications in Studio.

A common setup is a database webhook or a scheduled job that calls this when something changes, for example when new rows are added.

  • text is one line, 1 to 180 characters. Ynch sets the title, and a notification cannot carry a link.
  • Up to 100 notifications a day for each project.
  • Replacing the key in Settings stops the old one immediately.

The full list of replies is in the Notify API reference.