External Images over http don't load on Android preview

that’s because the file doesn’t exist - I was using it as an example.
replace
picture/ThreeSistersCafe.jpg with
picture/Obsidian/test.jpg

I can view that but embedding it in an https page is problematic.

so it’s an Android thing? Because they work fine in Obsidian desktop. I mean, why would I have to use https when http works in Obsidian desktop?

Have you tried the new editor on desktop. Do they work there

What new editor? The beta WYSIWYG?
If the idea is that all my links will stopworking in a ‘new’ editor, then I’m really screwed because I have an awful lot of picture links in this way.

More to the point… If I can see them in Obsidian and can see them in a browser on my Pixel, then why can’t I see them in Obsidian for moblie?

no, they still work.

I think this may be a mobile problem/restriction.

Then I will report it as a bug, because it seems that Android itself (via browsers) has no problem displaying it, and neither does Obsidian Desktop. Or maybe as moderator you can just change this to a bug report?

Hi everyone,
It’s related to my post Android Obsidian could not retrieve web contents in some cases

Since API Level 28, Android denies any non-secure connection without configuration.
And recently, it denies HTTPS endpoint with the certificate which local CA signed is also denied even if certificate installed into device store.

Well that sucks. I’m relying on my server to serve all my photos. So even if I get a certficiate for my local server (that does nothing but serve photos to Obsidian) it won’t work because I’m in Canada?

Edit: I’m such an idiot. Goes to show how little I know about http certificates, that I interpret CA as Canada!

It will work. Try this https://letsencrypt.org/

1 Like

Platform

[ ] iOS
[x] Android

Obsidian Mobile version: v1.0.5


Showed when I use URL with http protocol.
net::ERR_CLEARTEXT_NOT_PERMITTED

Actually, I might have some ideas on why this happens.

To be clear still, I’m not programmer nor know any programming/developing things. It’s just my small interest that sometimes I open Android apps’ .apk files and see what’s inside of these. There’s a file called AndroidManifest.xml there which works as the information of your package that declares things like what permission your app use and what components it has etc.

Starting from Android 9, using clear text traffic is denied by default, and the app need to declare a feature flag (not sure what’s that called officially) in the manifest file to reenable clear text traffics (Official docs) and then the app could use http:// links again.

For Obsidian, since user may have internet pictures, I think maybe it is better to add support for this.

Hope this helps @WhiteNoise

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Platform

Android 12
Galaxy S20FE

Obsidian Mobile version: v1.0.5


Description

On Android, embedding external images using http does not work (= no rendering of the image in preview mode) :

![](http://...)

Workaround

Use https links :

![](https://...)

Related feature request

Proposed solution

What @Obbyroll proposed here :

@whitenoise, is what Obbyroll explains here the case with Obsidian? Can Obsidian declare a feature flag to re-enable access to http vs https?

Yes, we will likely introduce this in the next mobile version (version 1.1.1).

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.