Version number issue.

  • 1
  • Question
  • Updated 4 years ago
When I upload a new version of my application through phonegap build, I don't seem to have the option like the first time I uploaded it to select a version number. It's stuck on 1.0 which is preventing me from going any further on the app store.
Photo of Kevin

Kevin

  • 5 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
Your folder structure looks a bit wierd. The zip file you should be uploading should look like this:


www.zip
|--config.xml
|--index.html
|--css,img,etc...
Photo of Kevin

Kevin

  • 5 Posts
  • 0 Reply Likes
Does this mean the config.xml file should be inside the www folder?

Because every time I launch a project on the PhoneGap Desktop app, this is the default placement of the file/folders. http://screencast.com/t/0bL5luWnR

I also zip this entire thing the first time and it worked fine. However I made a few changes and not when I upload it again, the version stays at 1.0, Did I not set the version correctly / at the correct place? http://screencast.com/t/QJvojvtna

Obviously since the build version on the phonegap build website stays at 1.0 the .ipa file also stays at 1.0 so when I try uploading to apple, I get an error because 1.0 already exists. Normal.
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
Yes the config.xml should be inside the www/ folder for PGB. If you use the phonegap cli and do phonegap remote build ios it will manage that for you.

While uploading the entire directory (with all the plugin and platform files) may have worked for you, it can cause problems as the system tries to determine which are your web assets.

Here's an example of a well-structured PGB upload:
https://github.com/wildabeast/PhoneGa...
Photo of Kevin

Kevin

  • 5 Posts
  • 0 Reply Likes
I have to say, you've been more than helpful and I truly appreciate that.

While I have you at my disposal, May I ask you two more questions.

I've looked everywhere online and I've added them, however they DON'T seem to work on my v.1.0. of the app.

1) How to LOCK the app in Portrait Mode?
Using this at the moment:

2) On pages where the app is static with no scrollable area, I can force scroll the page out of view
Reference: http://screencast.com/t/iuJLwilW
Using this at the moment:

Any suggestions? Thank you
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
Can you edit this and make sure you use code tags? Can't see the xml you're currently using.
Photo of Kevin

Kevin

  • 5 Posts
  • 0 Reply Likes
I'm sorry. Didn't realize :P

Both of these are not currently working but this is my current code:

1) Locking in the app in Portrait Mode:


<platform name="ios" >
<preference name="orientation" value="portrait" />
</platform>

<platform name="android" >
<preference name="orientation" value="portrait" />
</platform>


2) On pages where the app is static with no scrollable area, I can force scroll the page out of view
Reference: http://screencast.com/t/iuJLwilW


<preference name="webviewbounce" value="false"/>
<preference name="DisallowOverscroll" value="true" />
Photo of Kevin

Kevin

  • 5 Posts
  • 0 Reply Likes
In addition, this build seems to have errors that the first one did not have, which is weird because all I've changed from version 1.0 was the logo and the description of the app in the xml file..
http://screencast.com/t/NeCTsgHR
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Ryan,
I highly suggest, when answering questions that you hover the mouse over the avatar of the OP. If you see Posted 1 Top, leave it for me (or us).

Odds are this is a developer that started on Desktop App and is lost. After that the exchange can be long.

Jesse