# App Store Connect app review status notifications on your phone

> Get a push notification as your app version moves through App Review: submitted, in review, approved, live, or rejected.

- Company: App Store Connect (https://www.justpush.io/recipes/app-store-connect)
- Event: `APP_STORE_VERSION_APP_VERSION_STATE_UPDATED` (APP_STORE_VERSION_APP_VERSION_STATE_UPDATED)
- Tags: Developer tools, Releases
- Install: https://studio.justpush.io/recipes/app-store-connect/app-review-status
- Web page: https://www.justpush.io/recipes/app-store-connect/app-review-status

## Setup

1. Click Install in Studio and sign in. The recipe is added to your account and you get a personal webhook URL.
2. In App Store Connect, go to Users and Access > Integrations > Webhooks and add a webhook for your app.
3. Use the URL from the setup notes below, which adds your app's name so the notification can show it.
4. Select the APP_STORE_VERSION_APP_VERSION_STATE_UPDATED event, enter any secret, and save.
5. Send a test ping from the webhook to confirm it arrives.
6. Use this as the webhook URL, replacing the app name and ID with your own:
7. ```
8. your webhook URL (shown in Studio after install)?app=My%20App&app_id=1234567890
9. ```
10. App Store Connect only sends IDs and states, so `app` is what the notification calls your app (`%20` is a space). `app_id` is your app's **Apple ID**, found under **App Information**; it makes the button open your app instead of the App Store Connect home page. Both are optional.
11. App Store Connect asks for a secret and signs each request with it, but JustPush doesn't check that signature yet, so keep your endpoint URL private.

## Code

Studio calls `handleRequest(request)` with the incoming webhook (`{ method, headers, body, query, raw }`) and sends the message object it returns. Returning `null` sends nothing.

```js
// App Store Connect → app review status
// Fires when an app version moves through App Review (submitted, in review, approved, live or rejected).
// Docs: https://developer.apple.com/documentation/appstoreconnectapi/webhook-events
//
// Add an App Store Connect webhook for the APP_STORE_VERSION_APP_VERSION_STATE_UPDATED event
// pointing at your integration's endpoint URL plus ?app=My%20App&app_id=1234567890.

// The states worth a push, what to call them, and how loud to be.
// Other states (preparing, processing, replaced, …) are skipped.
const STATES = {
    WAITING_FOR_REVIEW: { title: "⏳ Submitted for review", text: "is waiting for App Review", priority: -1 },
    IN_REVIEW: { title: "👀 In review", text: "is being reviewed by Apple", priority: -1 },
    PENDING_DEVELOPER_RELEASE: {
        title: "✅ App approved",
        text: "passed App Review and is waiting for you to release it",
        priority: 1,
    },
    PENDING_APPLE_RELEASE: {
        title: "✅ App approved",
        text: "passed App Review and is scheduled for release",
        priority: 1,
    },
    READY_FOR_DISTRIBUTION: { title: "🚀 Live on the App Store", text: "is now available on the App Store", priority: 1 },
    REJECTED: { title: "❌ App rejected", text: "was rejected by App Review", priority: 1 },
    METADATA_REJECTED: { title: "❌ Metadata rejected", text: "was rejected by App Review for its metadata", priority: 1 },
    INVALID_BINARY: { title: "❌ Invalid binary", text: "was rejected because the binary is invalid", priority: 1 },
}

// App Store Connect only sends IDs and states, so the app's name and numeric ID come
// from query parameters you add to the webhook URL: ?app=My%20App&app_id=1234567890
function appFrom(request) {
    const query = request.query || {}
    const name = typeof query.app === "string" && query.app.trim() ? query.app.trim() : null
    const id = /^\d+$/.test(String(query.app_id ?? "")) ? String(query.app_id) : null

    return {
        name,
        link: id ? `https://appstoreconnect.apple.com/apps/${id}` : "https://appstoreconnect.apple.com/",
    }
}

function handleRequest(request) {
    const data = (request.body || {}).data
    const app = appFrom(request)

    // "Test" in App Store Connect sends a ping; confirm the connection with a quiet push.
    if (data?.type === "webhookPingCreated") {
        return {
            title: "🔔 App Store Connect connected",
            message: `Webhook for ${app.name ?? "your app"} is working`,
            topic: "App Store Connect",
            priority: -1,
        }
    }

    // Guard: only handle this event type, so other App Store Connect events stay quiet.
    if (data?.type !== "appStoreVersionAppVersionStateUpdated") {
        console.log(`Ignoring App Store Connect event "${data?.type ?? "unknown"}"`)
        return null
    }

    if (!Object.prototype.hasOwnProperty.call(STATES, data.attributes?.newValue)) {
        console.log(`Skipping app version state "${data.attributes?.newValue ?? "unknown"}"`)
        return null
    }

    const state = STATES[data.attributes.newValue]

    return {
        title: state.title,
        message: `${app.name ?? "Your app"} ${state.text}`,
        topic: "App Store Connect",
        priority: state.priority, // Low while waiting, High once there's a verdict
        buttons: [{ cta: "Open App Store Connect", url: app.link }],
    }
}
```

## App Store Connect APP_STORE_VERSION_APP_VERSION_STATE_UPDATED webhook payload (sample)

```json
{
  "data": {
    "id": "7c813492-9516-4c79-903e-224effdd57ac",
    "type": "appStoreVersionAppVersionStateUpdated",
    "version": 1,
    "attributes": {
      "newValue": "PENDING_DEVELOPER_RELEASE",
      "oldValue": "IN_REVIEW",
      "timestamp": "2026-09-28T09:30:52.745Z"
    },
    "relationships": {
      "instance": {
        "data": {
          "id": "ad7e6298-2570-4ca6-b3cc-f81788e40bdc",
          "type": "appStoreVersions"
        }
      }
    }
  }
}
```

## FAQ

### Does this work on iPhone and Android?

Yes. Install the JustPush app from the App Store or Google Play and sign in. Every phone signed in to your account gets the notification.

### Do I need to write code?

No. Install the recipe in Studio, paste your webhook URL into App Store Connect and you are done. The code is there if you want to change the text, the sound or the buttons.

### Can I change what the notification says?

Yes. After install the recipe's code is yours. Edit it in Studio and test it against the sample payload before you save.

### What does it cost?

JustPush is free for 30 days. After that it's $19.99 a year, or $39.99 once. There is no extra charge for recipes.
