ui.close
Closes your app and returns to Aksa.
Asks the host to close the app screen.
| 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 |
|---|---|---|
ok | boolean | true when the host started closing. |
Errors
| Code | When |
|---|---|
4200 | The phone could not do it right now. |
4290 | More than 30 requests in 10 seconds. |
See Error Codes for every code and how they reach your page.
Example
await window.aksa.request({ method: "ui.close" });With AksaMini
If your page embeds aksa-mini.js, use its wrapper:
AksaMini.close();Notes
- Save anything you need first. The page can be torn down right after the call.
Used By
Ready To Build Or Ship?
Check your files, preview on an iPhone frame, and submit in the Developer Studio.