question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Image in webview on Android not shown

See original GitHub issue

Environment

React Native Environment Info: System: OS: macOS High Sierra 10.13.6 CPU: x64 Intel® Core™ i7-7820HQ CPU @ 2.90GHz Memory: 499.04 MB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 11.0.0 - /usr/local/bin/node npm: 6.4.1 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: Android SDK: Build Tools: 27.0.3, 28.0.2 API Levels: 19, 21, 22, 23, 24, 25, 26, 27, 28 IDEs: Android Studio: 3.1 AI-173.4907809 Xcode: /undefined - /usr/bin/xcodebuild npmPackages: react: 16.4.2 => 16.4.2 react-native: 0.56.0 => 0.56.0 npmGlobalPackages: react-native-cli: 2.0.1

Description

I am using a webview to display custom html taken from Cloud FireStore. In some cases there is an image in that html. On iOS the image shows, but on Android the image is not shown. I just get the alt text.

This is the image tag inside the html: <img src="https://firebasestorage.googleapis.com/v0/b/sjaloom-connect.appspot.com/o/images%2Fdcf8ab78-e98f-46db-bdae-eab7b18ded1a.jpg?alt=media&token=e654671a-4320-464a-b1fd-7236170d48f7" alt="undefined" style="float:none;height: 100px;width: 120px"/>

Is this a bug in webview or is there a setting I miss.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
baguosijicommented, Nov 30, 2018

I also met this problem.

0reactions
udartscommented, Oct 30, 2018

I will post this same issue on their issues board as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Images not loading in android webview - Stack Overflow
The site loads without the images ,all the images from the site are not loaded what could be the problem. The code for...
Read more >
Images are not showing in webview from url android 9.0 - MSDN
Did you use Http or Https for your image by url? If you Http url to display your image, It cannot be shown,...
Read more >
Image in webview on Android not shown · Issue #118 - GitHub
I am using a webview to display custom html taken from Cloud FireStore. In some cases there is an image in that html....
Read more >
[SOLVED] API 30 - Showing Image inside webView not working
Hi, after updating my app to API30, my images inside a webView are not displayed (I get the blank image). Wondering if I'm...
Read more >
Webview can't display page using loadData() if image URLs ...
I am using webview to display contents, and I noticed that if there is an image URL with parameters after it, WebView will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found