Core Methodsbridge.version

bridge.version

Asks the host which bridge version it speaks.

Returns the bridge version of the host. Use it to feature-check before you rely on a newer method.

PropertyValue
ScopeNone (open method)
Who can use itAny developer
StatusAvailable

Parameters

None. Send no params, or an empty object.

Result

FieldTypeDescription
vnumberThe bridge version. It is 1 today.

Errors

CodeWhen
4290More than 30 requests in 10 seconds.

See Error Codes for every code and how they reach your page.

Example

js
const { v } = await window.aksa.request({ method: "bridge.version" });
if (v < 1) showFallback();

Notes

  • Every method also fails with -32601 on a host that does not know it, so you can feature-check by calling the method and handling that error.

Used By

No starter app calls this method yet.

Ready To Build Or Ship?

Check your files, preview on an iPhone frame, and submit in the Developer Studio.