camera.takePhoto
Takes a photo with the camera.
Opens the camera and returns the photo the person takes.
| Property | Value |
|---|---|
| Scope | camera |
| Who can use it | Verified developers only |
| Status | Reserved: 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
| Code | When |
|---|---|
4001 | The person said no, now or earlier. |
4200 | Always today: the Aksa app has no handler for this method yet. |
4290 | More than 30 requests in 10 seconds. |
See Error Codes for every code and how they reach your page.
Example
// Reserved: this answers 4200 today. Handle it so your app works either way.
try {
await window.aksa.request({ method: "camera.takePhoto" });
} 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 handle4200gracefully. - 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.