permissions.request
Asks for your declared scopes up front and reports one answer per scope.
Presents the scopes your manifest declares in one go. Calling it grants nothing by itself: each scope still goes through the normal decision (declared scope, phone gate, remembered answer, consent sheet).
| Property | Value |
|---|---|
| Scope | None (open method) |
| Who can use it | Any developer |
| Status | Available |
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
scopes | string[] | Yes | 1 to 10 distinct scope names, each a known scope. Duplicates, unknown names or an empty list fail the whole call. |
Result
| Field | Type | Description |
|---|---|---|
results | object | One entry per requested scope: granted, denied or unavailable. |
Errors
| Code | When |
|---|---|
-32602 | A parameter is missing, has the wrong type or is over its limit. |
4290 | More than 30 requests in 10 seconds. |
See Error Codes for every code and how they reach your page.
Example
const { results } = await window.aksa.request({
method: "permissions.request",
params: { scopes: ["actions.checkin", "profile.basic"] },
});
if (results["profile.basic"] !== "granted") hidePersonalFeatures();With AksaMini
If your page embeds aksa-mini.js, use its wrapper:
const { supported, results } = await AksaMini.requestPermissions(["actions.checkin", "profile.basic"]);Notes
deniedis remembered. The person can only change it in Settings > Connected Apps, so do not ask again in a loop.unavailablemeans the phone cannot offer that scope (for example an iOS-restricted native scope). No sheet is shown.- Only scopes in your manifest's
bridge.scopescan come backgranted. - A host that does not know this method answers
-32601.AksaMini.requestPermissionsturns that intosupported: false.
Used By
Ready To Build Or Ship?
Check your files, preview on an iPhone frame, and submit in the Developer Studio.