Support
AI Agent Docs
This page is for AI coding agents helping a developer add, debug, or explain Variant Launch in their own web project.
Variant Launch lets normal WebXR projects run on iOS by moving the user into the Variant Launch viewer. Android users generally use their browser's native WebXR support.
What to help with
Help the developer:
- embed the Launch SDK script early in the page;
- confirm their project SDK key and authorised domains are configured in the Launch dashboard;
- make sure the experience is served over a trusted HTTPS certificate;
- detect when WebXR is available and start a standard
immersive-arsession; - call
VLaunch.launch()from the user's Launch button; - debug browser-specific launch behaviour on iOS.
Do not ask the developer to change their 3D engine just to use Launch. Launch is intended to work with normal WebXR code in engines like ThreeJS, BabylonJS, PlayCanvas, Aframe, and raw WebXR.
SDK basics
The default embed looks like this:
<script src="https://launchar.app/sdk/v1?key=YOUR_SDK_KEY"></script>
The SDK should be loaded as early as possible in the document, ideally before the 3D engine starts checking WebXR support.
Add &redirect=true for a page that should automatically send iOS visitors to the hosted Launch page.
Once WebXR is available, the site should request a normal immersive-ar session:
navigator.xr.requestSession('immersive-ar', {
requiredFeatures: ['local'],
})
Initialisation event
For a Launch button, omit redirect=true. Listen for vlaunch-initialized before loading the SDK and enable the button once initialization completes. Make the launch call directly from the click handler.
window.addEventListener('vlaunch-initialized', (event) => {
launchButton.hidden = !event.detail.launchRequired
launchButton.disabled = false
})
launchButton.addEventListener('click', () => {
VLaunch.launch()
})
The event includes:
{
launchRequired: boolean
webXRStatus: 'unsupported' | 'launch-required' | 'supported'
launchUrl: string
directAppClipUrl?: string
}
Pass a destination to VLaunch.launch(targetURL) when the user should enter a different authorised page. For shareable links and printed QR codes, use the project's Launch dashboard.
iOS launch paths
VLaunch.launch() and hosted Launch pages handle the browser handoff. Safari can show the project's card or an Open banner. Other iOS browsers try Safari from the same tap. The App Clip can open with the standard Variant card when the browser stays active. Browser confirmations and the App Clip's Open action belong to the system UI.
Browser and device checks
Use these rules when troubleshooting:
- Exercise a Launch button and a hosted link on an iPhone. Test Safari and a browser that hands off to Safari, plus an in-app browser that stays in the app.
- Android Chrome usually uses native WebXR, so Launch may not be needed there.
- Desktop browsers are useful for development, but they do not prove App Clip behaviour.
- Real iPhone testing is required for App Clip, camera permission, and AR startup issues.
Domain and hosting checks
Before debugging Launch itself, confirm:
- the page is served over a trusted HTTPS certificate;
- the domain is authorised in the Launch dashboard;
- the SDK key belongs to the expected Launch project;
- the target URL is the page that should open inside the viewer;
- the SDK is not blocked by a content-security policy or ad blocker;
- the page loads the SDK before it checks
navigator.xr.
A self-signed local certificate that requires the user to accept a browser warning is not enough for iOS Launch testing. Use a trusted certificate or a tunnelling service for local development.
WebXR implementation guidance
Help the user keep their project close to standard WebXR:
- check
navigator.xr.isSessionSupported('immersive-ar'); - request an
immersive-arsession from a user gesture; - use a
localreference space unless their engine documentation says otherwise; - keep DOM overlay content simple and transparent when using camera passthrough;
- follow the chosen engine's WebXR setup docs before assuming the issue is Launch-specific.
Listen for vlaunch-ar-tracking on window. The Viewer reports normal in event.detail.status when tracking is ready.
Common advice
When helping a developer, ask for:
- the public page URL they are testing;
- the device and iOS version;
- the browser or app they opened the link from;
- whether they arrived from a Launch button, hosted URL, or QR code;
- the Launch project domain they expect to be authorised;
- console errors from Safari Web Inspector, if available.
Avoid asking for private dashboard credentials. If an SDK key is needed for a snippet, treat it as project configuration and avoid pasting it into public places.
When to send them to support
Send the developer to [email protected] when:
- the SDK key or dashboard project appears misconfigured;
- an authorised domain should work but Launch rejects it;
- the App Clip opens but does not load the expected target URL;
- behaviour differs between Android WebXR and iOS Launch viewer in a way the engine docs do not explain;
- the user has a billing, account, or Launch dashboard issue.
For engine-specific rendering, scene setup, asset loading, or general WebXR code problems, use the engine's own documentation and community resources first.