Hodaya Shalom
Hodaya Shalom

Reputation: 4417

google maps for iphone with PhoneGap

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

Answers (1)

Potatoswatter
Potatoswatter

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

Related Questions