Bridge Changelog
What the bridge offers in each version, and what a version number promises you.
The bridge is the small set of calls your page can make to Aksa through window.aksa. Every manifest names the bridge version it was written for, and today that is 1. A manifest with any other bridge version fails the automatic checks.
Bridge Version 1
Current. Every method below is in this version.
Calls Anyone Can Make
These need no scope in your manifest.
| Method | What it does |
|---|---|
bridge.version | Returns the bridge version the host speaks. |
context.get | Returns the app id and, when the page was opened from an Action, the Action and room. The per-app user id stays null until the person allows profile.basic. |
storage.get, storage.set, storage.remove | Saves small values on the person's device, separate for each app. |
clipboard.write | Copies text. |
share.open | Opens the share sheet with text. |
ui.close | Closes the mini app. |
report.open | Asks the host to open its report sheet. It takes no parameters. |
permissions.request | Asks for the scopes you declared up front. |
stars.spend | Asks the host to open a spend sheet. It takes no parameters and answers "not available" until Stars spending is on. |
Calls That Need A Scope
Declare the scope in bridge.scopes and the person is asked the first time.
| Scope | Methods |
|---|---|
actions.checkin | actions.checkIn |
calendar.write | calendar.addEvent |
profile.basic | profile.get, identity.claim |
profile.email | profile.getEmail |
camera | camera.takePhoto |
photos.pick | photos.pick |
location.foreground | location.getCurrent |
contacts.pick | contacts.pick |
notifications | notifications.status, notifications.subscribe |
health.read | health.read |
Every scope except actions.checkin and calendar.write needs a verified publisher. See Permissions And Scopes.
How A Change Is Recorded Here
A new method or a changed result is added to this page under the version it belongs to. Test your page against the current version in the Simulator, which answers the same way the phone does, and in the App Checker before you submit.
Ready to ship?
Submit An App