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

# Required: run the Fanvue Builder SDK in on-platform apps

> On-platform apps and fan experiences must run the Fanvue Builder SDK by 8 January 2027 to be submitted or to publish new fan experiences.

From 8 January 2027, Fanvue refuses an App Store submission or a new fan experience publish from an on-platform app it has detected running without the Fanvue Builder SDK. By the end of this page your app connects the SDK when it boots, and you know how Fanvue detects it and what a refusal looks like.

The requirement applies to on-platform apps, including the creator surface of an App Store app and the fan surface that serves fan experiences. It does not apply to API-only or off-platform apps, which Fanvue does not embed. Connect the SDK on every surface you serve.

## Connect the SDK when your app boots

You need `@fanvue/builder-sdk` 0.12.0 or later. This is a hard minimum, higher than the 0.8.0 the other Builder SDK guides use. An earlier version connects the bridge but does not announce session recording support, so Fanvue counts the launch as without the SDK. Call `connectFanvueBridge()` from `@fanvue/builder-sdk/bridge` as soon as the app boots.

```ts theme={null}
import { connectFanvueBridge } from "@fanvue/builder-sdk/bridge";

void connectFanvueBridge();
```

In React, `AuthProvider` and `useEmbeddedAuth` connect when they mount. If neither renders on your first screen, connect from a component in your root layout.

```tsx theme={null}
"use client";
import { useEffect } from "react";
import { connectFanvueBridge } from "@fanvue/builder-sdk/bridge";

export function FanvueBridgeConnect() {
  useEffect(() => {
    void connectFanvueBridge();
  }, []);

  return null;
}
```

## How Fanvue detects the SDK

The Fanvue page that hosts your app waits 15 seconds after your app's frame first loads for the SDK to connect and announce session recording support. If it does not, Fanvue counts that launch as without the SDK. A connect that arrives after 15 seconds still counts as present. A launch is one opening of your app inside Fanvue by a creator or fan, and a viewer is the account that opened it.

## Deadline and rollout

| Period | What happens |
| - | - |
| Before 8 January 2027 | Fanvue warns and refuses nothing. |
| From 8 January 2027 | Fanvue refuses a submission or a new fan experience publish from an app it has detected running without the SDK. Fanvue's App Store team may also remove such an app. |

Fanvue checks recent launches of your app for the SDK. From 8 January 2027, it refuses an App Store submission or a new fan experience publish from an app it detects running without the SDK.

One launch that connects the SDK clears the refusal straight away. Editing or republishing an existing experience is not refused.

**Warning above the app.** Before the deadline, a launch that does not connect the SDK shows a warning above the app. It shows on the creator surface of an app listed on the App Store, and on a fan experience when the creator who published it opens it. Fans never see it.

**Warning in the Developer Area.** Once Fanvue detects that your app is not running the SDK, every tab of your app's page shows a warning with the deadline. From 8 January 2027, the same place tells you the app is being refused.

## Check that your app connects

Open a fan experience you published, or the creator surface of your listed app, and wait 15 seconds. If the warning appears above the app, the SDK did not connect. The creator surface of an app that is not yet listed never shows the warning, so check that app through a fan experience.

## Connection timings and errors

`connectFanvueBridge({ timeoutMs? })` resolves a `Result<FanvueBridge, BridgeConnectError>`. The SDK retries until Fanvue answers or the connect timeout passes. Fanvue accepts the connection only from a frame whose origin matches your registered surface URL.

| Fact | Value |
| - | - |
| Connect timeout | 3,000 ms (`timeoutMs` option) |
| Retry interval while connecting | 500 ms until Fanvue answers |

`BridgeConnectError` has two codes:

* `NOT_EMBEDDED` means the page is not in an iframe.
* `TIMEOUT` means Fanvue never answered. Either something other than Fanvue is framing the page, or the frame's origin doesn't match the registered surface URL.

Fanvue also refuses a frame on an opaque origin, such as a sandbox without `allow-same-origin`.

Every call on a page shares one connection. A `TIMEOUT` is retried on the next call, while a connected bridge and `NOT_EMBEDDED` are cached until reload. Call `connectFanvueBridge` again after the iframe reloads.

## What a refusal looks like

On **Submit for review** in the Developer Area, Fanvue shows "This app is not running the Fanvue SDK. Connect the SDK before submitting or publishing."

When a creator confirms a new experience in the publish dialog, Fanvue shows "This app can't publish new experiences right now. Nothing has been changed."

On the public API, `POST /experiences` returns 403 with the body below when it would publish a new experience.

```json theme={null}
{
  "error": "app_sdk_required",
  "message": "Your app must run the Fanvue Builder SDK before it can publish new experiences"
}
```

To recover, deploy a build that connects the SDK, open the app inside Fanvue once, then submit or publish again.

## Session recording

Running the SDK is what lets Fanvue record a session for review, which is why the requirement exists. [Session recording in on-platform apps](https://api.fanvue.com/docs/app-store/sdk/session-recording.md) covers what a recording contains, what is never recorded, where recordings go, and the attributes that hide more of your app.


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