Reputation: 4417
I have an app built in HTML5 + PhoneGap
,
in the application has a map of the Google-maps,
on an Android The application works fine,
I moved it to the iphone it also runs but it hangs when it should deal with google maps
.
My link to the google map looks like this:
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=true"></script>
Do I need another link?
Upvotes: 1
Views: 381
Reputation: 137770
Add maps.googleapis.com
to ExternalHosts
in Cordova.plist
. This is a whitelist of servers that the app is allowed to access.
Check the debugging log for whitelist violation errors if the problem persists, and add any other servers as necessary.
Upvotes: 1