Permissions And Scopes
What you must declare, what the person is asked, and which scopes need a verified developer.
A scope is a permission your app asks for. Every bridge method belongs to a scope, or to none: the open methods need no permission at all.
The Rules
- You can only call scopes you declared in
manifest.bridge.scopes. The automatic checks reject a page that calls a method whose scope is missing. - The person is asked the first time you call each scope, and the answer is remembered.
- A scope added in a new version triggers a full review.
- Sensitive scopes (profile, email, location, health, contacts, photos, notifications) need a verified developer. Basic developers may use
actions.checkinandcalendar.write. To upgrade, open Account Menu -> Developer Profile in Developer Studio and click Request Verification after accepting terms (verification steps).
Asking Up Front
To ask before the person needs the feature, use permissions.request:
window.aksa.request({ method: "permissions.request", params: { scopes: ["actions.checkin"] } })You get one answer per scope:
| Answer | Meaning |
|---|---|
granted | You may call it. |
denied | The person said no. It is remembered, and they can only change it in Settings under Connected Apps. |
unavailable | The phone cannot offer it, for example an iOS-restricted native scope. |
A host without the method answers an unknown-method error, and AksaMini.requestPermissions then resolves supported: false. Gate features on the answers, not on the call succeeding. Only scopes in your manifest can come back granted.
See Bridge Methods for the scope each method needs.
Ready to ship?
Submit An App