# Allow access to camera, geolocation, other Web APIs

**URL:** <https://forum.delta.chat/t/allow-access-to-camera-geolocation-other-web-apis/2446>\
**Category:** Mini Apps\
**Tags:** webxdc-api-future\
**Created:** [February 17, 2023, 12:25pm UTC](https://forum.delta.chat/t/allow-access-to-camera-geolocation-other-web-apis/2446 "2023-02-17T12:25:41Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![WofWca](https://forum.delta.chat/user_avatar/forum.delta.chat/wofwca/32/1702_2.png) [@WofWca](https://forum.delta.chat/u/WofWca)\
**Post date:** [February 17, 2023, 12:25pm UTC](https://forum.delta.chat/t/allow-access-to-camera-geolocation-other-web-apis/2446/1 "2023-02-17T12:25:41Z")

</div>

I was thinking about making a “share location” app (maybe without drawing an actual map, so that people can find each other when they’re close by), but it turned out that the Geolocation API is not accessible, at least on Delta Chat for Android and Desktop.

I think given the nature of webxdc (no way to “phone home”) people are much more willing to give the app access to such API compared to regular websites, it would be a shame for webxdc to miss out on such powerful features.

Yes, it appears that on mobile the entire Delta Chat app would need to be granted such permissions in order to grant them to a webxdc app. Here’s a [Stack Overflow question about it](https://stackoverflow.com/questions/5329662/android-webview-geolocation).

~~Also it appears that on Desktop the apps are not in a [secure context](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts)~~ Update: no longer the case after [this MR](https://github.com/deltachat/deltachat-desktop/pull/3413).  
[Certain APIs](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts/features_restricted_to_secure_contexts) (e.g. Geolocation, Storage API, Device Orientation, Web Crypto API) are not accessible in non-secure contexts.  
Also the fact that we’ve recently started to wrap the apps in `<iframes>` might be a concern, but not sure.

Related: [Other things that don't work ("Discouraged practices") · Issue #66 · webxdc/webxdc\_docs · GitHub](https://github.com/webxdc/webxdc_docs/issues/66)

---

<div class="post-metadata">

**Author:** ![Simon](https://forum.delta.chat/user_avatar/forum.delta.chat/simon/32/287_2.png) [@Simon](https://forum.delta.chat/u/Simon)\
**Post date:** [February 17, 2023, 3:33pm UTC](https://forum.delta.chat/t/allow-access-to-camera-geolocation-other-web-apis/2446/2 "2023-02-17T15:33:05Z")

</div>

we can implement permission handling in desktop at least, at the moment we just deny most of them.

---

<div class="post-metadata">

**Author:** ![WofWca](https://forum.delta.chat/user_avatar/forum.delta.chat/wofwca/32/1702_2.png) [@WofWca](https://forum.delta.chat/u/WofWca)\
**Post date:** [November 16, 2023, 1:55pm UTC](https://forum.delta.chat/t/allow-access-to-camera-geolocation-other-web-apis/2446/3 "2023-11-16T13:55:31Z")

</div>

I made a prototype of an app that relies on the _camera permission_:

> [@I made a video call app (with 15-second ping)](https://support.delta.chat/t/i-made-a-video-call-app-with-15-second-ping/2800):
>
> Another giant leap for mankind. A webxdc app for actual video calls over actual email (albeit with 15-second ping (but [it may improve soon](https://github.com/deltachat/deltachat-core-rust/pull/4904))). [A simplistic video call app UI] This is just a prototype. Usage Unfortunately, as of 2023-11-16, sending audio/video won’t work on unmodified versions of Delta Chat, but [this may change](https://support.delta.chat/t/allow-access-to-camera-geolocation-other-web-apis/2446) in the near future. Receiving video does work on regular Delta Chat. If you don’t want to bother modifying Delta Chat — hit me up, I’ll show you the app in action. …

---

<div class="post-metadata">

**Author:** ![WofWca](https://forum.delta.chat/user_avatar/forum.delta.chat/wofwca/32/1702_2.png) [@WofWca](https://forum.delta.chat/u/WofWca)\
**Post date:** [June 28, 2024, 2:06pm UTC](https://forum.delta.chat/t/allow-access-to-camera-geolocation-other-web-apis/2446/4 "2024-06-28T14:06:16Z")

</div>

I have a concrete proposal on how we can move forward with this in DC Desktop.

Let’s introduce an experimental toggle “Manage webxdc App Permissions”. When enabled, we add a “Pemissions” submenu to [the “Edit” menu](https://github.com/deltachat/deltachat-desktop/blob/12057caa4c75f2a83b32657a88c31e4f95db2753/src/main/deltachat/webxdc.ts#L257) of the webxdc window that is going to list the permissions as checkboxes, similar to [the “Float on Top” checkbox](https://github.com/deltachat/deltachat-desktop/blob/12057caa4c75f2a83b32657a88c31e4f95db2753/src/main/deltachat/webxdc.ts#L274-L287).  
No need to think about popups and dynamic permission requests like on Android. Just simple checkboxes.

 ![image](https://support.delta.chat/uploads/default/original/2X/f/f90e62824154476ddbbd293f5c81516630c37bc3.png)

What do you think?

Update: I implemented this MR (WIP): [WIP: feat: a way to grant permissions to webxdcs by WofWca · Pull Request #4008 · deltachat/deltachat-desktop · GitHub](https://github.com/deltachat/deltachat-desktop/pull/4008)

---

<div class="post-metadata">

**Author:** ![Simon](https://forum.delta.chat/user_avatar/forum.delta.chat/simon/32/287_2.png) [@Simon](https://forum.delta.chat/u/Simon)\
**Post date:** [June 29, 2024, 4:37pm UTC](https://forum.delta.chat/t/allow-access-to-camera-geolocation-other-web-apis/2446/5 "2024-06-29T16:37:53Z")

</div>

Good idea, though should be set for each webxdc instance and a confirmation dialog allowing the app to ask for permission still makes sense usability wise.

---

<div class="post-metadata">

**Author:** ![WofWca](https://forum.delta.chat/user_avatar/forum.delta.chat/wofwca/32/1702_2.png) [@WofWca](https://forum.delta.chat/u/WofWca)\
**Post date:** [June 30, 2024, 6:25am UTC](https://forum.delta.chat/t/allow-access-to-camera-geolocation-other-web-apis/2446/6 "2024-06-30T06:25:35Z")

</div>

Of course. My idea is to just start somewhere without getting stuck on discussions about how to implement dialogs and stuff.

---

<div class="post-metadata">

**Author:** ![gholk](https://forum.delta.chat/letter_avatar_proxy/v4/letter/g/edb3f5/32.png) [@gholk](https://forum.delta.chat/u/gholk)\
**Post date:** [November 28, 2025, 1:53pm UTC](https://forum.delta.chat/t/allow-access-to-camera-geolocation-other-web-apis/2446/7 "2025-11-28T13:53:16Z")

</div>

I made a recorder app in html, and found that delta chat does not allow MediaRecorder API access in WebXDC…

---

<div class="post-metadata">

**Author:** ![Minim](https://forum.delta.chat/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@Minim](https://forum.delta.chat/u/Minim)\
**Post date:** [November 28, 2025, 4:00pm UTC](https://forum.delta.chat/t/allow-access-to-camera-geolocation-other-web-apis/2446/8 "2025-11-28T16:00:34Z")

</div>

You could copy-paste your satnav co-ordinates into an app and get a spatial map, or into a bot and get OSM tiles, and add the app to a chat with the bot to get geolocation. This limited geolocation might actually be useful for teaching mapreading.

---

<div class="post-metadata">

**Author:** ![farooqkz](https://forum.delta.chat/user_avatar/forum.delta.chat/farooqkz/32/1762_2.png) [@farooqkz](https://forum.delta.chat/u/farooqkz)\
**Post date:** [February 19, 2026, 5:01pm UTC](https://forum.delta.chat/t/allow-access-to-camera-geolocation-other-web-apis/2446/9 "2026-02-19T17:01:28Z")

</div>

Microphone access can be useful for many things. For instance, I have an app to train reciting in mind. With the current situation, people have to record the audio in other apps, then upload it through the mini app which is a bad UX.

---

<div class="post-metadata">

**Author:** ![fei](https://forum.delta.chat/letter_avatar_proxy/v4/letter/f/59ef9b/32.png) [@fei](https://forum.delta.chat/u/fei)\
**Post date:** [February 21, 2026, 10:41am UTC](https://forum.delta.chat/t/allow-access-to-camera-geolocation-other-web-apis/2446/10 "2026-02-21T10:41:04Z")

</div>

I like the idea of the apps having to declare the permissions upfront so it can be checked externally.

---

<div class="post-metadata">

**Author:** ![Low](https://forum.delta.chat/letter_avatar_proxy/v4/letter/l/ecae2f/32.png) [@Low](https://forum.delta.chat/u/Low)\
**Post date:** [May 29, 2026, 3:59pm UTC](https://forum.delta.chat/t/allow-access-to-camera-geolocation-other-web-apis/2446/11 "2026-05-29T15:59:06Z")

</div>

What is the status of camera permissions specifically in webxdc?

Shouldn’t a webxdc app just inherit the permissions of the environment that it is in? (Website, app, etc)

I don’t see a point in requesting permissions for a Webxdc app in a delta chat convo when the delta chat app already has such permissions.

---

<div class="post-metadata">

**Author:** ![WofWca](https://forum.delta.chat/user_avatar/forum.delta.chat/wofwca/32/1702_2.png) [@WofWca](https://forum.delta.chat/u/WofWca)\
**Post date:** [May 29, 2026, 4:05pm UTC](https://forum.delta.chat/t/allow-access-to-camera-geolocation-other-web-apis/2446/12 "2026-05-29T16:05:43Z")

</div>

> [@Low](#):
>
> What is the status of camera permissions specifically in webxdc?

No updates.

> [@Low](#):
>
> I don’t see a point in requesting permissions for a Webxdc app in a delta chat convo when the delta chat app already has such permissions.

You don’t want someone to send you a modified version of the editor app that will secretly spy on you using the microphone permission.  
The difference is that you may trust Delta Chat not to abuse your mic, but you can’t trust every WebXDC app with that.

---

<div class="post-metadata">

**Author:** ![Low](https://forum.delta.chat/letter_avatar_proxy/v4/letter/l/ecae2f/32.png) [@Low](https://forum.delta.chat/u/Low)\
**Post date:** [May 29, 2026, 4:10pm UTC](https://forum.delta.chat/t/allow-access-to-camera-geolocation-other-web-apis/2446/13 "2026-05-29T16:10:03Z")

</div>

> [@WofWca](#):
>
> The difference is that you may trust Delta Chat not to abuse your mic, but you can’t trust every WebXDC app with that.

At that point, you’d just choose to not use an app or use one based on if you trust them or not.

The UX would significantly suffer if users had to allow permissions for every single instance of a webxdc app.

---

<div class="post-metadata">

**Author:** ![WofWca](https://forum.delta.chat/user_avatar/forum.delta.chat/wofwca/32/1702_2.png) [@WofWca](https://forum.delta.chat/u/WofWca)\
**Post date:** [May 29, 2026, 4:13pm UTC](https://forum.delta.chat/t/allow-access-to-camera-geolocation-other-web-apis/2446/14 "2026-05-29T16:13:33Z")

</div>

Not good enough if it already leaked a picture of you naked.

---

<div class="post-metadata">

**Author:** ![ian](https://forum.delta.chat/user_avatar/forum.delta.chat/ian/32/3164_2.png) [@ian](https://forum.delta.chat/u/ian)\
**Post date:** [May 29, 2026, 4:16pm UTC](https://forum.delta.chat/t/allow-access-to-camera-geolocation-other-web-apis/2446/15 "2026-05-29T16:16:54Z")

</div>

How about provide options for each permissions such as:

- allow/decline for this invocation
- allow/decline for this instance in this chat
- allow/decline for all instances of this webxdc file in this chat (based on file hash)
- allow/decline for all instances of this webxdc file in any chat
- allow/decline for all webxdc submitted by this sender in this chat
- allow/decline for all webxdc submitted by this sender in any chat

---

<div class="post-metadata">

**Author:** ![Low](https://forum.delta.chat/letter_avatar_proxy/v4/letter/l/ecae2f/32.png) [@Low](https://forum.delta.chat/u/Low)\
**Post date:** [May 29, 2026, 4:23pm UTC](https://forum.delta.chat/t/allow-access-to-camera-geolocation-other-web-apis/2446/16 "2026-05-29T16:23:37Z")

</div>

> [@WofWca](#):
>
> Not good enough if it already leaked a picture of you naked.

I’m so confused by this mentality. Do you trust Delta Chat or do you not? If not, stop using the app. If yes, then the webxdc apps are equally as safe as the Delta Chat app itself.

Also, if the webxdc sandbox is compromised, “permissions” do not help you one bit. Congrats, you just approved the app to leak your nudes lmao.

---

<div class="post-metadata">

**Author:** ![Low](https://forum.delta.chat/letter_avatar_proxy/v4/letter/l/ecae2f/32.png) [@Low](https://forum.delta.chat/u/Low)\
**Post date:** [May 29, 2026, 4:28pm UTC](https://forum.delta.chat/t/allow-access-to-camera-geolocation-other-web-apis/2446/17 "2026-05-29T16:28:02Z")

</div>

> [@ian](#):
>
> - allow/decline for this invocation
> - allow/decline for this instance in this chat
> - allow/decline for this webxdc file in any chat (based on file hash)
> - allow/decline for any webxdc submitted by this sender

Horrible UX. The entire selling point of a webxdc app is that it is frictionless. If you add friction, they become worthless bloat.

If the webxdc sandbox is not safe, delete it from delta chat right now. What are we even doing?

---

<div class="post-metadata">

**Author:** ![WofWca](https://forum.delta.chat/user_avatar/forum.delta.chat/wofwca/32/1702_2.png) [@WofWca](https://forum.delta.chat/u/WofWca)\
**Post date:** [May 29, 2026, 6:28pm UTC](https://forum.delta.chat/t/allow-access-to-camera-geolocation-other-web-apis/2446/18 "2026-05-29T18:28:21Z")

</div>

I think I’m the one confused here.

> [@Low](#):
>
> If yes, then the webxdc apps are equally as safe as the Delta Chat app itself.

How is that so? Delta Chat is made and signed by the developers of Delta Chat, approved on Google Play and built on F-Droid machines. A WebXDC app can be made and sent by anyone who has my Delta Chat contact.  
We wouldn’t need the entire “sandbox” thing then at all, just let the WebXDC apps do whatever.

---

<div class="post-metadata">

**Author:** ![Low](https://forum.delta.chat/letter_avatar_proxy/v4/letter/l/ecae2f/32.png) [@Low](https://forum.delta.chat/u/Low)\
**Post date:** [May 29, 2026, 6:37pm UTC](https://forum.delta.chat/t/allow-access-to-camera-geolocation-other-web-apis/2446/19 "2026-05-29T18:37:17Z")

</div>

> [@WofWca](#):
>
> How is that so?

Because Delta Chat is the one that put the webxdc sandbox in the app. If you think they put a back door in the sandbox for webxdc developers to exploit, why are you even using Delta Chat?

> [@WofWca](#):
>
> A WebXDC app can be made and sent by anyone who has my Delta Chat contact.

Yes, and it runs inside Delta Chat’s sandbox. If you trust Delta Chat’s sandbox, then nothing more needs to be trusted. If you don’t trust Delta Chat’s sandbox, then just stop using their app.

---

<div class="post-metadata">

**Author:** ![WofWca](https://forum.delta.chat/user_avatar/forum.delta.chat/wofwca/32/1702_2.png) [@WofWca](https://forum.delta.chat/u/WofWca)\
**Post date:** [May 29, 2026, 6:41pm UTC](https://forum.delta.chat/t/allow-access-to-camera-geolocation-other-web-apis/2446/20 "2026-05-29T18:41:58Z")

</div>

I trust the Delta Chat sandbox, and I expect it not to let apps use powerful features such as camera and mic without my explicit permission.

[Next page](https://forum.delta.chat/t/allow-access-to-camera-geolocation-other-web-apis/2446.md?page=2)
