简体   繁体   中英

ionic framework remote image not loading on android device < 4.4

Hi this issue related to Ionic framework on old android phones <4.4 It only works with existing local images, but not showing the dynamic remote images (eg src = ' http://server/xxxx.png ')

However this works on android version => 4.4 .

I also tried cordova-plugin-whitelist but it wont works. plz guide if any other solutions ?

Question solved here: External images in the Ionic default tab template won't load in the emulator and on the device

Using the plugin cordova-plugin-whitelist allows you to load external images on Android and iOS.

Here is how to install it:

ionic plugin add cordova-plugin-whitelist

For iOS, it adds the following entries to your plist.

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
</dict>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM