Building With The BridgeStorage And Context

Storage And Context

Where your app keeps data and what it can learn about where it was opened.

Storage

Your app has its own storage on the person's device. It is per app: another app cannot read it, and your app gets no Aksa cookies.

MethodWhat it does
storage.getReads a value by key.
storage.setWrites a value by key.
storage.removeRemoves a key.

These are open methods: no scope and no permission prompt.

js
window.aksa.request({ method: "storage.set", params: { key: "glasses", value: "3" } })

Keys are 1 to 128 characters made of letters, digits and . _ : -. Store text, and turn numbers and objects into text yourself.

Context

context.get returns the app id, your per-app pseudonymous userId, the actionId, the roomId, the locale and the source. The userId is stable for your app and means nothing in any other app. See User Identity And Email.

Sharing And Closing

share.open opens the share sheet, clipboard.write copies text, and ui.close closes your app. All three are open methods.

Ready to ship?

Submit An App