Device Methodsphotos.pick

photos.pick

Lets the person pick photos.

Opens the system photo picker. Your app only receives the photos the person chooses.

PropertyValue
Scopephotos.pick
Who can use itVerified developers only
StatusReserved: answers 4200 today

Parameters

Not defined yet. The parameters are set when the method ships.

Result

Not defined yet. The result is set when the method ships.

Errors

CodeWhen
4001The person said no, now or earlier.
4200Always today: the Aksa app has no handler for this method yet.
4290More than 30 requests in 10 seconds.

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

Example

js
// Reserved: this answers 4200 today. Handle it so your app works either way.
try {
  await window.aksa.request({ method: "photos.pick" });
} catch (e) {
  if (e.code === 4200) useFallback();
}

Notes

  • You can declare the scope in your manifest, and it is reviewed like any other. Do not make a feature depend on this method while it is reserved (4200); check bridge.version and handle 4200 gracefully.
  • When it ships, the first call opens a consent sheet and the person can revoke it in Settings > Connected Apps.
  • It needs a verified developer.

Used By

No starter app calls this method yet.

Ready To Build Or Ship?

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