0

I have an Android app where I load images either using Glide + PhotoView or fallback to WebView. For most users everything works fine, but on some devices (for example Redmi Note 11, Android 13) the image does not load at all.

Here is the sample URL that fails:

https://edubase-assets.blr1.digitaloceanspaces.com/<some_path>/<file>.jpg

What happens

  • Glide fails with Image load failed (SSL error inside logs).

  • WebView also fails to load the image.

  • When I sent the same URL to the user, the mobile browser also failed to open it.

  • But the same URL opens fine on his laptop browser.

So this looks like an SSL/TLS compatibility issue specific to the device, not my code or the internet connection.

enter image description here

What I have tried

  • Glide with .timeout(60000) and disk cache.

  • WebView with JavaScript enabled.

  • Verified URL works for me and most other users.

  • Asked user to try on browser (fails on phone, works on laptop).

  • Checked that DigitalOcean Spaces is serving the image over HTTPS without issues on desktop.

My question

Why does this SSL error happen only on some Android devices (like Redmi Note 11 on Android 13)?
Do I need to fix something on the server certificate / TLS settings in DigitalOcean Spaces, or is there a workaround I can apply in the Android app?

7
  • SSL error inside logs Please edit your question to include these error messages. Commented Sep 26 at 15:21
  • @PresidentJamesK.Polk I can’t reproduce it on my side, but I got a screenshot of the SSL error from the user’s device. I’ll update the question with that. Commented Sep 26 at 15:26
  • "Why does this SSL error happen only on some Android devices (like Redmi Note 11 on Android 13)?" -- most likely, the server is using some certificate authority that is not recognized by the device. Perhaps Redmi does not support DigiCert certificates. Commented Sep 26 at 16:52
  • @CommonsWare Yeah, I figured that might be the case. What do you think is the best way to deal with it? Commented Sep 26 at 17:02
  • 1
    I do not know much about Digital Ocean, let along their Spaces service. I also do not know much about your intended clients of this server. If Digital Ocean lets you supply your own SSL certificates, then consider using a different provider, such as Let's Encrypt. If you are stuck with your current SSL certificate, you could use OkHttp with Glide and customize the certificates that OkHttp trusts. But that will not help clients other than your Android app. Commented Sep 26 at 17:12

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.