Apache Cordova : impossible to see pictures on iOS 9.0 -


i making mobile application apache cordova. index.html file simple:

<!doctype html> <html>     <head>         <meta name="format-detection" content="telephone=no">         <meta name="msapplication-tap-highlight" content="no">         <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">         <link rel="stylesheet" type="text/css" href="css/index.css">         <title>hello world</title>     </head>     <body>         <div class="app">             <h1>apache cordova</h1>             <div id="deviceready" class="blink">                 <p class="event listening">connecting device</p>                 <p class="event received">device ready</p>             </div>             <img style="width:100%;" src="http://www.diana.dti.ne.jp/~june1/perfume/perfume_voce.jpg" />             <img style="width:100%;" src="original.jpg" />         </div>         <script type="text/javascript" src="cordova.js"></script>         <script type="text/javascript" src="js/index.js"></script>     </body> </html> 

it's not complicated:

i want see 2 pictures:

online picture

http://www.diana.dti.ne.jp/~june1/perfume/perfume_voce.jpg

picture in same folder index.html

original.jpg

i don't know why, works on ios 8.4 doesn't work on ios 9.0

▽ sorry stackoverflow blocks screenshot (because new member), can see pictures on page: https://openclassrooms.com/forum/sujet/apache-cordova-impossible-de-voir-image-externes

this picture:

on ios 8.4

enter image description here

on ios 9.0

enter image description here

where error , why it's doesn't work on ios 9.0 now?

probably http request blocked default in ios.

you have set nsallowsarbitraryloads key yes under nsapptransportsecurity dictionary in .plist file.

refer link: transport security has blocked cleartext http


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -