Core Methodsui.close

ui.close

Closes your app and returns to Aksa.

Asks the host to close the app screen.

PropertyValue
ScopeNone (open method)
Who can use itAny developer
StatusAvailable

Parameters

None. Send no params, or an empty object.

Result

FieldTypeDescription
okbooleantrue when the host started closing.

Errors

CodeWhen
4200The phone could not do it right now.
4290More than 30 requests in 10 seconds.

See Error Codes for every code and how they reach your page.

Example

js
await window.aksa.request({ method: "ui.close" });

With AksaMini

If your page embeds aksa-mini.js, use its wrapper:

js
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.