[TIMOB-25697] iOS: Local image is not loading to the webveiw.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2018-01-23T10:54:45.000+0000 |
Affected Version/s | Release 7.0.1 |
Fix Version/s | n/a |
Components | iOS |
Labels | escalation |
Reporter | Motiur Rahman |
Assignee | Unknown |
Created | 2018-01-23T09:05:40.000+0000 |
Updated | 2018-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
File | Date | Size |
---|---|---|
test.jpg | 2018-01-23T09:01:51.000+0000 | 1486739 |
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.Closing as a duplicate. If this is in error, please reopen.