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.
| Property | Value |
|---|---|
| Scope | None (open method) |
| Who can use it | Any developer |
| Status | Available |
Parameters
None. Send no params, or an empty object.
Result
| Field | Type | Description |
|---|---|---|
v | number | The bridge version. It is 1 today. |
Errors
| Code | When |
|---|---|
4290 | More than 30 requests in 10 seconds. |
See Error Codes for every code and how they reach your page.
Example
const { v } = await window.aksa.request({ method: "bridge.version" });
if (v < 1) showFallback();Notes
- Every method also fails with
-32601on 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.