У меня есть куча img
тегов с содержимым внутри их атрибутов src
, однако изображения не появляются, когда приложение загружается в PhoneGap. Однако отображение изображений/видимо отлично в браузере.Изображения в тегах src не отображаются в PhoneGap
Я добавил следующее к моему файлу config.xml
в соответствии с документацией, так как я подозревал, что это проблема со списком, однако это не решило проблему.
<allow-navigation href="*" />
<access origin="*" />
Ниже мой config.xml
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" id="com.private.private" version="0.0.3">
<name>private</name>
<description>private</description>
<author href="http://private.co.nz" email="[email protected]">private</author>
<content src="index.html"/>
<plugin name="cordova-plugin-camera" />
<plugin name="cordova-plugin-whitelist" version="1"/>
<preference name="permissions" value="none"/>
<preference name="orientation" value="default"/>
<preference name="target-device" value="universal"/>
<preference name="fullscreen" value="false"/>
<preference name="webviewbounce" value="true"/>
<preference name="prerendered-icon" value="true"/>
<preference name="stay-in-webview" value="false"/>
<preference name="ios-statusbarstyle" value="black-opaque"/>
<preference name="detect-data-types" value="true"/>
<preference name="exit-on-suspend" value="false"/>
<preference name="show-splash-screen-spinner" value="true"/>
<preference name="auto-hide-splash-screen" value="true"/>
<preference name="disable-cursor" value="false"/>
<preference name="android-minSdkVersion" value="14"/>
<preference name="android-installLocation" value="auto"/>
<icon src="icon.png"/>
<icon src="www/assets/images/icon.png" gap:platform="android"/>
<icon src="www/assets/images/icon.png" gap:platform="ios"/>
<gap:splash src="www/assets/images/splash.png" gap:platform="android" />
<gap:splash src="www/assets/images/splash.png" gap:platform="ios" />
<allow-navigation href="*" />
<access origin="*" />
<allow-intent href="http://*/*"/>
<allow-intent href="https://*/*"/>
<allow-intent href="tel:*"/>
<allow-intent href="sms:*"/>
<allow-intent href="mailto:*"/>
<allow-intent href="geo:*"/>
</widget>
Вы можете отредактировать вопрос. Это не ответ. –
Просто подразумевается, что проблема связана с другой проблемой - вы можете следить за обновленным вопросом здесь: http://stackoverflow.com/questions/40858034/images-do-not-display-when-using-adobe-phonegap- angular2-картинка-Src –