Tablet support (Android/iPad)

  • 25
  • Question
  • Updated 8 years ago
  • Answered
Is there current support (or planned future support) for tablets? Specifically Android (Xoom, Galaxy) and iPad. Tried multiple settings in config.xml and index.html with no luck. Thanks!
Photo of Josh Ellington

Josh Ellington

  • 4 Posts
  • 0 Reply Likes
  • confused

Posted 9 years ago

  • 25
Photo of Fil Maj

Fil Maj

  • 139 Posts
  • 15 Reply Likes
PhoneGap runs on tablets (Android and iPad). Can you provide more details as the problems you are seeing?

Also, what is your app ID number (in the URL)?
Photo of Josh Ellington

Josh Ellington

  • 4 Posts
  • 0 Reply Likes
It loads and operates fine, but the app renders in the phone dimensions. Is there a current way to enable the app to fill the entire tablet screen? Or planned future support for that?

Here is my app ID: 5381
Photo of Fil Maj

Fil Maj

  • 139 Posts
  • 15 Reply Likes
It will come in the future. We are working out how to specify all of these various application parameters via the configuration file (config.xml).
Photo of Josh Ellington

Josh Ellington

  • 4 Posts
  • 0 Reply Likes
Okay, great. Is there a rough timeline or roadmap for when this feature will be available?
Photo of Fil Maj

Fil Maj

  • 139 Posts
  • 15 Reply Likes
Not really. We are taking things one step at a time, and there is no timeline other than "some time in the future".

Sorry!
Photo of Josh Ellington

Josh Ellington

  • 4 Posts
  • 0 Reply Likes
No problem. Thanks for the great work so far!
Photo of Fil Maj

Fil Maj

  • 139 Posts
  • 15 Reply Likes
Glad to hear you're enjoying it! We'll do our best in communicating features and fixes that we roll out as we go along.
Photo of Tehel

Tehel

  • 2 Posts
  • 0 Reply Likes
Tried it today on the android SDK tablet emulation (1280x800 screen), and the app ran ok but was only using about a sixth of the screen (upper half of the middle third of the display).

A bit disappointing, but promising anyway :) Glad to know it's on your todo list.
Photo of polone

polone

  • 1 Post
  • 0 Reply Likes
Couldn't you use the viewmodes attribute for for this? It actually would be better if the application could dynamically react without having to specify this at all - but I don't know if that is possible.

http://www.w3.org/TR/widgets/#the-vie...
Photo of gabyignacio

gabyignacio

  • 2 Posts
  • 0 Reply Likes
I would like to know if there is still no support for tablets (Android tablets and iPad).
Photo of Imran

Imran

  • 3 Posts
  • 0 Reply Likes
are there any "unsupported" workarounds since I really need to use this on an iPad.
Photo of Mike Gregoire

Mike Gregoire

  • 17 Posts
  • 2 Reply Likes
If you have the Xcode 4 installed, you can use phonegap to make an IPad specific app. You specify the target in the info options of the build setup.
Photo of kfrancis

kfrancis

  • 6 Posts
  • 0 Reply Likes
@Mike - Yes, but some of us are Windows developers who can't use XCode.
Photo of granta

granta

  • 3 Posts
  • 0 Reply Likes
I'm running into this problem specifically in my PhoneGap Android app. I used the solution described by Mike Gregoire above when publishing my iOS app and it works great. My app is not tablet-specific, but it does work properly on the iPad.

The trouble starts with Android tablets: the app is launched as a variously narrow band along the left side of the screen. The width of the "band" is determined by the screen size and density. Oddly, I know the app works (and scales to fit the screen width) on various Android phones... so what gives?

In my index.html file, I have followed the conventional wisdom (for a web page intended for a mobile device) and included the following meta tag:

According to the Android WebView documentation (http://developer.android.com/guide/we..., this meta tag should allow my app (displayed in the WebView, right?) to be scaled to fit the width of whatever device its' launched on.

This seems to work on Android phones, just not Android tablets. Am I describing the same problem as noted in this thread?
Photo of granta

granta

  • 3 Posts
  • 0 Reply Likes
sorry, my HTML sample got removed when I posted. The meta tag I'm using is [meta name="viewport" content="user-scalable=no, width=device-width" /] ... just imagine the [] brackets as pointy-brackets... ;-)
Photo of Lenny Grover

Lenny Grover

  • 1 Post
  • 0 Reply Likes
I'm also trying to use PhoneGap build to develop iOS apps on Windows. The IPA app works fine on the iPad but iTunes indicates that its settings indicate it can work on the iPhone as well. Our HTML5 page requires a high screen resolution so it will not work on an iPhone or Android-phone and is tablet-specific. Is there any undocumented config.xml or other build setting that we can use to make an app tablet-only? This is a pretty important option for tablet developers.
Photo of superabe

superabe

  • 1 Post
  • 0 Reply Likes
Still no official support for tablets on phonegap? Is this not a high-priority for phonegap? Is the primary intention of phonegap to target phones only?

New to phonegap, so just trying to understand better if this will help me in my plans to target tablets, or if I should target other options
Photo of Kyle Johnson

Kyle Johnson

  • 1 Post
  • 0 Reply Likes
Photo of granta

granta

  • 3 Posts
  • 0 Reply Likes
Kyle - The short snippet you hyperlinked is the step-by-step to target an iPad device using Xcode4 or newer. This is the same solution described by Mike Gregoire. I've had 100% success using that method - my PhoneGapp app works great on the iPad.

The trouble most of us in this discussion are describing (and that Fil Maj kindly verified early on) are a series of issues with Android tablets. Specifically: proper support for the Android 'config.xml' file to publish an Android app that properly scales to use the full tablet display consistently across devices.

If you want to build an iPad app using PhoneGap, my experience says you should have no trouble at all: Just remember to scale your artwork and layouts for that screen!
Photo of Sudipta

Sudipta

  • 1 Post
  • 0 Reply Likes
Please bring the support to Android tablets asap - would make the solution perfect then!
Photo of ralf

ralf

  • 1 Post
  • 1 Reply Like
On Android, adding the following to AndroidManifest.xml fixed the problem for me:

<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:xlargeScreens="true"
android:resizeable="true"
android:anyDensity="true"
/>


The official example includes the above code, but for some reason I forgot to include it.
Photo of Shail

Shail

  • 21 Posts
  • 2 Reply Likes
Hi, I am having problem of "file not found".

My Application is working fine in the smartphone and simulator(in tablet version) but when i try to run application in actual device(Samsung galaxy tablet) after few pages its gives the error that file not found(in my case it is setp1.html).

i have put the below code to redirect to that file :
window.location = "step1.html";

I don't know why it is not working on real device(tablet) as it's working fine on simulator(tablet).

Please help...
Photo of Ian

Ian

  • 1 Post
  • 0 Reply Likes
11 months. And still no Tablet support. Hmmmm.

This conversation is no longer open for comments or replies.