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.
AuthProvider and useEmbeddedAuth connect when they mount. If neither renders on your first screen, connect from a component in your root layout.
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
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.
BridgeConnectError has two codes:
NOT_EMBEDDEDmeans the page is not in an iframe.TIMEOUTmeans Fanvue never answered. Either something other than Fanvue is framing the page, or the frame’s origin doesn’t match the registered surface URL.
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.