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

  • SEARCH
  • Home
  • 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 7128007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:05:35+00:00 2026-05-28T11:05:35+00:00

We are considering using PhoneGap for an iPad application that we are developing. We

  • 0

We are considering using PhoneGap for an iPad application that we are developing. We would prefer to develop it in HTML5/CSS3/JS (which we are very familiar with), so the PhoneGap framework is obviously attractive to us.

I do, however, have one question. Our client will be using the application on an iPad, but connecting to an HD display to mirror the content. The problem is the iPad at 4:3 and the HD screen at 16:9. Using pure Objective-C, we have read about ways to display different content to the second screen and/or scale it up (to prevent black bars on the sides).

My question is, can we solve this with PhoneGap? Is responsive CSS capable of handling this? Using CSS3 Media Queries, etc? Or would we have to go down the route of developing an Objective-C app from the ground up?

Cheers!

  • 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-28T11:05:36+00:00Added an answer on May 28, 2026 at 11:05 am

    From my experience things like Media Queries work very poorly in PhoneGap. For example while PhoneGap sets you with the following in your index.html page:

    <link media="only screen and (max-device-width: 480px)" href="css/iphone.css" type="text/css" rel="stylesheet" />
    <link media="only screen and (max-device-width: 1024px)" href="css/ipad.css" type="text/css" rel="stylesheet" />
    

    I couldn’t get it to work no matter how I changed things, I ended up having to add in conditional css using the following javascript:

    loadDeviceStyle: function() {
      $("head").append("<link>");
      css = $("head").children(":last");
      css.attr({
        rel:  "stylesheet",
        type: "text/css",
        href: 'css/' + Utils.device() + '.css'
      });
    }
    

    Which is obviously less than ideal. I also found the viewport settings to be a major hassle and had to code my way around it. While it was likely an error on my side, the documentation didn’t help me clear up the issues, so prepare to spend time on it.

    With all that said – because PhoneGap is easy to setup quickly – I’d try to create a proof of concept for what you’re trying to do. The hours you spend answering this question definitively will certainly translate into less headaches down the road.

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

Sidebar

Related Questions

I'm considering using SQLite as a production database for a site that would receive
I have an application which allocates lots of memory and I am considering using
I am considering using Postsharp framework to ease the burden of application method logging.
My organization is considering using Jabber as an agnostic device to device to application
I'm considering using the Google Contacts API for a webapp, but I'm worried that
I am considering using TinyMCE to handle the textboxes on sites I develop. I
I'm considering using the VB6 Common Controls Replacement Project controls and would like to
I'm considering using MongoDb for a backing store for a WPF app that I'm
I am considering using CodeIgniter as the framework for my next web-application. However, I
I'm considering using PostgreSQL's Ltree module in my application to help with threaded comments.

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.