I've created an app using Phonegap and app is available at
https://play.google.com/store/apps/de...
I'm not sure why the app is not showing up for Nexus 7 tablet. My config.xml looks like as shown at http://pastebin.com/tFdG4bzM.
Also, it shows the PhoneGap version as 1.7.0 although I haven't specified the version. Shouldn't it be using PhoneGap 2.0? Can we have a sample config.xml that works for across devices?
https://play.google.com/store/apps/de...
I'm not sure why the app is not showing up for Nexus 7 tablet. My config.xml looks like as shown at http://pastebin.com/tFdG4bzM.
Also, it shows the PhoneGap version as 1.7.0 although I haven't specified the version. Shouldn't it be using PhoneGap 2.0? Can we have a sample config.xml that works for across devices?
- 5 Posts
- 0 Reply Likes
Posted 8 years ago
Alan Neveu, Champion
- 213 Posts
- 11 Reply Likes
Okay, not sure who all is listening, but I figured out a workaround to this. I found that I can just comment out this line from my config.xml:
<!-- <feature name="http://api.phonegap.com/1.0/camera"/> -->
And this causes my app to appear in Google Play on the Nexus 7. Furthermore, my app uses the camera and it works just fine this way on that device. So perhaps this line is just not necessary for Android builds? It would be nice to get some comment from PhoneGap folks as to what I might be breaking by not including a reference to the camera feature and then calling the getPicture API. Andrew? Hardeep? Anything?
I will do some testing to figure out if this breaks anything with iOS, but not today, probably tomorrow. I did test on an Android 2.3.4 phone and found my app works as expected this way.
<!-- <feature name="http://api.phonegap.com/1.0/camera"/> -->
And this causes my app to appear in Google Play on the Nexus 7. Furthermore, my app uses the camera and it works just fine this way on that device. So perhaps this line is just not necessary for Android builds? It would be nice to get some comment from PhoneGap folks as to what I might be breaking by not including a reference to the camera feature and then calling the getPicture API. Andrew? Hardeep? Anything?
I will do some testing to figure out if this breaks anything with iOS, but not today, probably tomorrow. I did test on an Android 2.3.4 phone and found my app works as expected this way.
Alan Neveu, Champion
- 213 Posts
- 11 Reply Likes
It seems I am having a conversation with myself on this thread, but here is more information in case someone reads this.... Removing the feature for camera from the config.xml breaks my app for iOS. This causes the getPicture API to somehow fail after you take a photo and tap Use. Soooo, looks like this is an Android hack that I have to apply in order to get Android builds out of PhoneGapBuild that will run on Android tablets.
More information... It turns out the Samsung Galaxy Note *does* have a rear facing camera, but omitting the camera feature from the config.xml is the only way to get that tablet to show the app from Google Play.
I tried an Asus tablet and it shows the app with or without the camera feature in config.xml, and their rear facing camera actually works. The Samsung camera is terrible for reading text.
I also tried a Lenovo 9" tablet and it is like the Nexus 7 and Samsung Galaxy Note in that the app only appears in Google Play if the config.xml does not reference the camera feature. The Lenovo camera crashes, however, when getPicture API is called. That might be a separate issue, I don't know, and probably can't know because the only way to get the app to appear on that device is to omit the camera feature from config.xml.
Anybody from PhoneGap listening???
More information... It turns out the Samsung Galaxy Note *does* have a rear facing camera, but omitting the camera feature from the config.xml is the only way to get that tablet to show the app from Google Play.
I tried an Asus tablet and it shows the app with or without the camera feature in config.xml, and their rear facing camera actually works. The Samsung camera is terrible for reading text.
I also tried a Lenovo 9" tablet and it is like the Nexus 7 and Samsung Galaxy Note in that the app only appears in Google Play if the config.xml does not reference the camera feature. The Lenovo camera crashes, however, when getPicture API is called. That might be a separate issue, I don't know, and probably can't know because the only way to get the app to appear on that device is to omit the camera feature from config.xml.
Anybody from PhoneGap listening???
Alan Neveu, Champion
- 213 Posts
- 11 Reply Likes
UPDATE... Turns out my test was not accurate and I was stumbling over the iOS6 FileReader bug. Removing the camera feature from config.xml does NOT break my app for iOS, even though my app uses the camera. So I am moving forward with *not* referencing the camera feature in config.xml and it seems this breaks nothing while gaining distribution to Android tablets through Google Play. In this wacky world of HTML5 mobile app development that's pretty much a success. But I hope that someone at PhoneGap will read this long thread and get this one simple summary:
SUMMARY:
Including the camera feature in config.xml winds up filtering the app out of Google Play results on Android tablets including the Nexus 7 and Samsung Galaxy Tab. Omitting the camera feature in config.xml while still calling getPicture in the app does not seem to break anything. It may cause a problem with Lenovo's tablet camera use but that might be caused by something else.
SUMMARY:
Including the camera feature in config.xml winds up filtering the app out of Google Play results on Android tablets including the Nexus 7 and Samsung Galaxy Tab. Omitting the camera feature in config.xml while still calling getPicture in the app does not seem to break anything. It may cause a problem with Lenovo's tablet camera use but that might be caused by something else.
- 68 Posts
- 7 Reply Likes
Alan,
I think you're right. It's very strange, but an app I made for a client 8 months ago using 1.3.0 that was built using PG Build, does use a camera. Even though the "feature" is left out of its config.xml, it works, and shows up on the Nexus 7
However, the new app using 2.0.0, with the camera "feature" included in its config.xml does not show up on the Nexus 7.
John
I think you're right. It's very strange, but an app I made for a client 8 months ago using 1.3.0 that was built using PG Build, does use a camera. Even though the "feature" is left out of its config.xml, it works, and shows up on the Nexus 7
However, the new app using 2.0.0, with the camera "feature" included in its config.xml does not show up on the Nexus 7.
John
- 33 Posts
- 1 Reply Like
- 7 Posts
- 0 Reply Likes
Amongst other devices, Nexus 7 reports "tvdpi" as screen resolution, which is not supported by Phonegap, so it will display the 480x800px hdpi splash screen instead of the 720x1280px xhdpi image, and so it looks ugly, blurry. Is there any solution to fix it? Also, with the rapid spread of smart tvs, smart tv boxes and tablets it probably would be a good idea to support tvdpi?
I think I will try using 720x1280px splash image as hdpi splash too, and see if Android scales the image down to the screen size (for example 480x800), and if yes, does it look good or not?
I think I will try using 720x1280px splash image as hdpi splash too, and see if Android scales the image down to the screen size (for example 480x800), and if yes, does it look good or not?
Related Categories
-
PhoneGap Build
- 15111 Conversations
- 275 Followers


