> ## Documentation Index
> Fetch the complete documentation index at: https://docs.newly.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Integrations

> Which services work with Newly apps today, and how to add push notifications and payments.

Newly (app.newly.app) has Newly Backend built in. Push notifications, payments, Supabase and GitHub have their own connect cards, right in the chat. For other services, the agent adds them to your app's code with your own account for that service.

## What works today

| Integration | Status in Newly |
| - | - |
| Newly Backend (accounts, database, server code) | Built in. See [Data, accounts and Newly Backend](https://docs.newly.app/backend/overview.md). |
| Push notifications | Ask for them in a chat, or open **Integrations**, then **Push notifications**. Connect OneSignal managed by Newly (no OneSignal account needed) or with your own OneSignal account. |
| Email | Send app emails and campaigns from your own domain. Open **Integrations**, then **Email**. See [Email your users](https://docs.newly.app/backend/email.md). |
| In-app purchases and payments | Ask for a paywall in a chat and connect RevenueCat from a card, or open **Integrations**, then **Subscriptions**. |
| GitHub | Connect it in **Integrations**, then **GitHub**, to keep your project's code (app and `backend/`) in a repository you own, synced both ways. Your database, files and secrets stay in Newly. Only an organization owner or admin can connect it. See [Connect GitHub](https://docs.newly.app/code/github.md), or [Get your code](https://docs.newly.app/code/get-your-code.md) for a one-off download. |
| Supabase | Connect your own Supabase project from a card in the chat or from **Integrations**. The agent deploys Edge Functions and database changes to it. See [Supabase](#supabase). |
| Firebase or other backends | Not supported. Newly Backend is the backend for Newly apps. |
| Marketing Studio | Not part of Newly. |

## Supabase

If your app uses Supabase, connect your own Supabase project. The agent then deploys Edge Functions, applies database migrations and reads logs in that project for you. It never sees your Supabase keys.

Only an organization owner or admin can connect Supabase.

### Connect it

**1. Start the connection**

Ask the agent for something that needs Supabase and it shows a **Connect Supabase** card, or open your project's **Integrations** and pick Supabase.

**2. Sign in to Supabase**

Press **Connect Supabase** and finish the sign-in in the browser tab that opens.

**3. Choose the project**

Pick the Supabase project this app uses and press **Use this project**. To start fresh, press **Create a new Supabase project**, choose the organization and the region closest to your users, and wait a minute or two while Supabase starts the database. It uses your Supabase plan: the free plan allows two active projects. In **Integrations**, if your project isn't listed, use **Not listed? Sign in with another Supabase account**.

Supabase is connected per project. In **Integrations**, the Supabase panel also holds **Function secrets**: keys your Edge Functions read with `Deno.env.get`, such as `STRIPE_SECRET_KEY`. Their values go to Supabase and are never shown again, to you or to the agent.

If your Supabase sign-in expires, press **Reconnect Supabase** on the chat card, or **Connect Supabase** in **Integrations**, so the agent can keep deploying. **Disconnect** stops the agent deploying to your project and leaves the project and everything in it untouched. Connecting again picks the same project.

## Push notifications with OneSignal

Ask the agent for push notifications in a chat and it shows a **Connect OneSignal** card. You can also set them up in your project's **Integrations** tab, under **Push notifications**.

Only an organization owner or admin can connect push notifications.

### Choose where the OneSignal app lives

The card and the panel both ask this first.

| Option | What it means |
| - | - |
| **Managed by Newly (recommended)** | One tap, no OneSignal account needed. Newly runs the OneSignal app for you, and you see its stats in Newly. It is not visible on onesignal.com. |
| **Use my own OneSignal account** | The app is yours on onesignal.com, with full access. Use an app you already have, or make a new one. Your OneSignal plan and limits apply. It takes about 2 minutes: you copy one key. |

### Use your own OneSignal account

**1. Create an Organization API key**

On onesignal.com, open your organization's settings and choose **Security**. Under API keys, choose **Add key**, name it Newly and choose **Create**. Paste the key into Newly and select **Find my apps**. A key from an app's own Settings page does not work here.

The key is encrypted on your device before it is sent, and stored encrypted. The chat and the agent never see it. You can delete the key on onesignal.com at any time.

**2. Pick the app**

Choose one of the apps in your organization, or **+ Create a new app in my organization** and give it a name. If your organization has no apps yet, Newly also asks for your **Organization ID**: organization settings, **Security**, the copy button under **Keys & IDs**.

**3. Agree and connect**

Check the organization and app, then select **Agree and connect**. Newly adds an API key named "Newly" to the app to send notifications. If the app already has iOS or Android set up on onesignal.com, that setup stays as it is.

Your app, subscribers and history stay in your OneSignal account. Disconnecting never deletes them. To cut Newly off completely, also revoke the "Newly" key on onesignal.com.

### Set it up

**1. Ask the agent to add push notifications**

Describe when your app should send them. For example: "Send a push notification when someone replies to your post."

**2. Connect OneSignal**

Pick **Managed by Newly (recommended)** and select **Connect OneSignal**, or connect your own account as above.

**3. Turn on delivery**

Two rows follow, one per platform. Both are optional at first: the code the agent writes is the same, only delivery waits.

* **iOS:** select **Sign in with Apple**. It connects your App Store Connect app (existing or new, the same connection publishing uses) and creates its push key.
* **Android:** select **Connect Google**. Newly creates a Firebase project for this app in your Google account and wires it up. You can also pick one of your existing Google Cloud projects.

If your team already has its own Apple push key or Firebase project, upload them from the same row instead: **Upload a .p8 instead** for iOS, **Upload a service account instead** for Android.

**4. Let the agent finish**

On the card, select **Done, set up push notifications**. The agent writes the notification code. In the **Integrations** panel, **Add push notifications to the app** does the same once a platform is set up.

**5. Send a test**

In **Integrations**, **Push notifications**, open the **Activity** tab and use **Send a test**. Leave the user id empty to send to everyone. To reach a real device, install a [TestFlight](https://docs.newly.app/publish/testflight.md) build of your app, allow notifications when asked, then send. Only an organization owner or admin can publish to TestFlight.

The **Push notifications** panel has two tabs. **Setup** shows which OneSignal app is connected, the iOS and Android rows, and **Disconnect**. **Activity** has the test send, delivery charts and **Recent sends**, with delivered, failed and opened counts for each.

## In-app purchases and payments

Ask the agent for a paywall or subscriptions in a chat and it shows a **Connect RevenueCat** card. You can also connect in your project's **Integrations** tab, under **Subscriptions**.

Only an organization owner or admin can connect payments.

### Connect from the chat

**1. Sign in to RevenueCat**

Select **Connect RevenueCat**. RevenueCat opens in your browser. If you're new to RevenueCat, you can create an account there. Nothing is pasted into Newly, and the agent never sees a key.

**2. Pick a project**

If you already use RevenueCat, choose the project this app already sells through. Its products, entitlement and subscribers stay exactly as they are. Or choose **Create a new project**.

**3. Pick your prices**

For a new project, set a **Monthly** and/or **Annual** price and an optional 7-day **Free trial**. Prices are in USD, and other countries get the stores' matching prices. Select **Set up my subscriptions**. Newly sets up the products, entitlement and paywall for this app.

### Set up payments with Apple

Apple sends your products to the app only after you accept its Paid Apps Agreement and add your bank and tax details. Until then, the paywall shows no prices and nobody can buy, in TestFlight or on the App Store. You do this once per Apple Developer account, as the Account Holder, in **Business** in App Store Connect. The card and the panel show the steps.

### The Subscriptions panel

**Integrations**, **Subscriptions** has two tabs.

* **Setup:** the connected RevenueCat project, with options to switch to a different project or open the RevenueCat dashboard.
  * **App Store:** **Attach App Store app** puts your app into the RevenueCat project with your App Store Connect key. Connect your Apple account on the TestFlight flow first.
  * **Google Play:** enter your Android package name and choose a Google Play service-account JSON. RevenueCat uses it to validate Android purchases, and Newly keeps it encrypted to create your products on Google Play.
* **Products:** the products the app sells. **New product** creates one in RevenueCat, then App Store Connect, priced in every country and written in your listing's languages.

Disconnecting RevenueCat deletes nothing, and products keep selling. The project stops showing them, and the chat can't add a paywall until you connect again.

Keep these in mind:

* **Apple's rules:** apps on the App Store generally have to use Apple's in-app purchase for digital goods and features. See [From TestFlight to the App Store](https://docs.newly.app/publish/app-store-and-google-play.md).
* **Screen order:** when your app has sign-in, onboarding and a paywall, the agent keeps them in the order sign-in, onboarding, paywall, home. See [Sign-in for your app](https://docs.newly.app/backend/app-sign-in.md#screen-order-with-sign-in-and-a-paywall).
* **Keys:** keep private payment keys on your backend, never in the app.

## Other services

For other services, such as a weather API or a maps provider, ask the agent to add them. If the service needs a private API key, follow these steps.

1. Get the key from the service.
2. Set it as a secret on your backend's `api` service with the newly CLI. Add `--env prod` to set it on your production backend too. See [Production and secrets](https://docs.newly.app/backend/production-and-secrets.md).
3. Ask the agent to call the service from your backend, not from the app.

## Related

> [card] [Data, accounts and Newly Backend](https://docs.newly.app/backend/overview.md)
>
> What's built into Newly Backend.

> [card] [Ship your iOS app to TestFlight](https://docs.newly.app/publish/testflight.md)
>
> Test push notifications and purchases on a real iPhone.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.