Image file doesnt show on iPhone hybrid app

0
In a custom widget, we build this HTML element: <img src="https://example.com/file?guid=21955048183431274" class="customImage" alt=""> On a webbrowser and the Android hybrid app, the correct image is shown. However, on the iPhone hybrid app, an empty box is shown. The console doesn't give any error. Does anyone have an idea what could cause this and what might fix it?
asked
1 answers
1

Check your Phonegap config.xmll settings. Every URL used by your app needs to be whitelisted. Otherwise the content will not be shown.

Regards,

Ronald

[EDIT]

Example

	<gap:plugin name="cordova-plugin-whitelist" source="npm" version="1.2.2" />
	<allow-navigation href="https://example.com/*" />

[EDIT2]

From the documentation if you want to whitelist everthing (but they strongly recommend to not use this) it should be:

<allow-navigation href="*" />

 

answered