Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6843011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:10:19+00:00 2026-05-27T00:10:19+00:00

I have an PhoneGap iOS app and have this HTML that won’t show the

  • 0

I have an PhoneGap iOS app and have this HTML that won’t show the map in the app. I see the map perfectly in Safari or FF but not in the app. How can I get this to work?

    <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>

    <script src="http://code.jquery.com/jquery-1.6.2.min.js"></script>  
    <script type="text/javascript">

        $(document).ready(function(){
                    var initialLocation = new google.maps.LatLng(37.654,-77.980);
                        var myOptions = {
                                        zoom: 12,
                                        center: initialLocation,
                                        mapTypeId: google.maps.MapTypeId.ROADMAP
                        };
                        var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
            });
</script>   
</head> 
<body>
<div data-role="content">   
    <!--images go here -->
    <div class="img_shadow" style="padding:4px;">
                    <div id="map_canvas" style="height:130px;"></div>
    </div>
</div>      
</div><!-- /page -->

</body>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:10:20+00:00Added an answer on May 27, 2026 at 12:10 am

    PhoneGap has a whitelist system for external URLs/Hosts.

    From the wiki:

    Also, the latest code has the new white-list feature. If you are
    referencing external hosts, you will have to add the host in
    PhoneGap.plist under the “ExternalHosts” key. Wildcards are ok. So if
    you are connecting to “http://phonegap.com”, you have to add
    “phonegap.com” to the list (or use the wildcard “*.phonegap.com” which
    will match subdomains as well).

    Your code snippet above has a few external hosts in it:

    • maps.google.com
    • code.jquery.com

    Perhaps try adding “*” to ExternalHosts to start with to make sure that isn’t the problem, then add more specific hosts once it’s working.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a mobile app that I developed using PhoneGap (and html/css/javascript) and there
I have a Phonegap/Cordova app that runs on iOS. It saves it's data into
I have a HTML5/Javascript (Sencha) app that I have packed into PhoneGap for iOS
I have lately been developing a very simple app for iOS with PhoneGap. All
I have an app made using jquerymobile+phonegap, and running under iOS. The surpise arrived
I have PhoneGap app in Android. Now I am ready to publish it, but
I have a PhoneGap app that I'm testing on webOS, Android, and iPhone. I'm
I have a PhoneGap app in which I've just added the Facebook iOS SDK,
I just have finished a PhoneGap app on iOS, now it's time to port
I am using phonegap(cordova 2.1.0) for IOS/android app development. Every time i have to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.