I am creating an iOS application with cordova / phonegap. The problem is that I cannot load Google maps, as this is an external js script. I searched for several hours to find the answer, but no luck.
However, this is what I discovered:
<script src="js/jquery.js"></script>
This works in the browser and in the iOS xcode simulator.
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
This does not work in the emulator and does not work on a real device. The application does not load jquery and completely breaks. Of course, this works in the browser, as expected.
I have
<access origin="*" />
in my config.xml ...
Also ... putting this:
<img src="http://jquery.com/jquery-wp-content/themes/jquery/images/logo-jquery@2x.png">
somewhere in the code ... works fine.
Any ideas?
source
share