Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26054] Android: Webview with HTML having GIF images not loaded on all android devices.

GitHub Issuen/a
TypeBug
PriorityNone
StatusResolved
ResolutionCannot Reproduce
Resolution Date2018-08-01T16:14:00.000+0000
Affected Version/sRelease 7.1.0, Release 7.1.1
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterAminul Islam
AssigneeAminul Islam
Created2018-05-18T17:02:03.000+0000
Updated2018-08-01T16:14:01.000+0000

Description

Hi, I am facing a wired issue in android. I have Web-view with HTML having GIF images. GIF images is loading in some android device and doesn't load in some android device. 1.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=no"/>
</head>

<body style="background-color:transparent; margin: 0; height: 100%; overflow: hidden">
    <div style="text-align: right">
         <img src="gifImg.gif" style="width: 40px; height: 40px" />
    </div>
</body>

</html>
index.xml
<Alloy>
    <Window class="container">
        <WebView id="previewWebView" url = '/gifTest/1.html'/>
    </Window>
</Alloy>
Places your gif image and HTML file to the "assets/gifTest/" location Note: We have tested on Android 6 (HTC one m8), Android 7 (Huawei), and Android 8 Huwawei y9 2018 is working as expected. Problem with the following devices and Chrome browser version: 66.0.3359.158 OnePlus 5T(8.1.1), Moto G4 plus(v7.0.0), onePlus 3(v8.0.0) and Moto G5 (v7.0.0) *Steps To Reproduce:* 1. Run the provided test code with those specific devices. 2. Make sure the Chrome browser of those devices is up to date. 3. Test on the actual device, not on emulator. *Test environment :*
Operating System
  Name                        = Microsoft Windows 10 Pro
  Version                     = 10.0.16299
  Architecture                = 32bit
  # CPUs                      = 4
  Memory                      = 17091956736
Node.js
  Node.js Version             = 8.9.1
  npm Version                 = 5.5.1
Titanium CLI
  CLI Version                 = 5.1.0
Titanium SDK
  SDK Version                 = 7.1.1.GA
Thanks

Attachments

FileDateSize
gifImg.gif2018-05-18T16:57:38.000+00005781
web.zip2018-05-18T17:01:58.000+00001870

Comments

  1. Lokesh Choudhary 2018-07-20

    [~aislam], Unfortunately we don't have access to any of the devices you are seeing the issue with. But, I did check it with Nexus 6P - Android 8.1.0, Nexus 5 - Android 6.0.1 & Nexus 5 - Android 5.1 using 7.2.0.GA SDK * did not see any issue. I could see the gif image fine.

JSON Source