Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25697] iOS: Local image is not loading to the webveiw.

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionDuplicate
Resolution Date2018-01-23T10:54:45.000+0000
Affected Version/sRelease 7.0.1
Fix Version/sn/a
ComponentsiOS
Labelsescalation
ReporterMotiur Rahman
AssigneeUnknown
Created2018-01-23T09:05:40.000+0000
Updated2018-08-06T17:41:13.000+0000

Description

Issue: Image path is not getting in webview. I would like to set a background image to the webView but it does not work. The image is located in the assets folder. But it works as expected on Android. Steps to Reproduce: 1. Create a new Alloy project 2. Place an image to the assets>>images folder 3. Run the following test code to the iOS device
<Alloy>
	<Window id="win">
		<WebView id="webview" backgroundImage="/images/test.jpg"></WebView>
	</Window>
</Alloy>
$.win.open();

Attachments

FileDateSize
test.jpg2018-01-23T09:01:51.000+00001486739

Comments

  1. Hans Knöchel 2018-01-23

    Duplicate of TIMOB-24001. If we want to fix it, we need to fix app-thinning to not use hashes as discussed with [~cbarber] in the above ticket. We never addressed it so far because there was an idea of an "universal asset catalog" instead, which hasn't been requested or prioritized. I'd rather want to see the hashes be removed to match the native iOS behavior and later consider to also do Android. Summary: Use the workaround (Setting <use-app-thinning>false</use-app-thinning> in the tiapp.xml) for now or request a prioritization of removing the hashes.
  2. Eric Merriman 2018-08-06

    Closing as a duplicate. If this is in error, please reopen.

JSON Source