Share Methodsshare.open

share.open

Opens the phone's share sheet with text from your app.

Hands text to the system share sheet. The person chooses where it goes; your app never sees the destination.

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

Parameters

NameTypeRequiredDescription
textstringYesUp to 16,384 characters.

Result

FieldTypeDescription
okbooleantrue when the sheet opened.

Errors

CodeWhen
-32602A parameter is missing, has the wrong type or is over its limit.
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: "share.open",
  params: { text: "I read 4 pages of the Qur'an today on Aksa" },
});

With AksaMini

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

js
await AksaMini.share("I read 4 pages of the Qur'an today on Aksa");

Notes

  • Share only what the person expects to share. Do not include personal data they did not enter.

Used By

Ready To Build Or Ship?

Check your files, preview on an iPhone frame, and submit in the Developer Studio.