Apps that worked in 2.9 do not work in 3.1 IOS 7

  • 3
  • Question
  • Updated 6 years ago
  • Answered
I have gone through the steps in the documentation to upgrade and use Phonegap Build 3.1 for hybrid apps and I can never get my app to install on IOS 7. After scanning the QR code Phonegap build starts installing the app but when install finishes I try to launch the app in it goes back to: "installing". We also notice that phonegap build says we're still using 2.9 instead of 3.1 . This is VERY frustrating and everything worked fine in 2.9. Is there an accurate detailed step by step instruction for upgrading working 2.9 apps to 3.1 so we can support IOS7?
Photo of Chan Leonard

Chan Leonard

  • 3 Posts
  • 0 Reply Likes

Posted 7 years ago

  • 3
Photo of ismael jimoh

ismael jimoh

  • 4116 Posts
  • 192 Reply Likes
Hi Serge,

The cordova.js is automatically injected by our server.

The version inserted matches the version you set in your config.xml.

Hence it's a cordova.js meant for 3.3 you will need.

This can be gotten by building a simple project locally and running the build command.

In the platforms folder (in your root directory)/platform name/ there should be the appropriate cordova.js created in there.

Alternatively, you can download the ipa and/ or apk files from build, unzip it and you should find a cordova.js for each platform in the respective files.
Photo of Serge Charbit

Serge Charbit

  • 75 Posts
  • 0 Reply Likes
Hi Isamel,

Thank you for your reply.
But the (big) problem between 2.9.0 and today is that all device functions are no more in the cordovaxxx.js but in the plugins.js
So we need to think before leaving the 2.9
Thanks for your help
Best regards
Serge
Photo of ismael jimoh

ismael jimoh

  • 4116 Posts
  • 192 Reply Likes
Hi Serge,

In regards that, provided you specify in config.xml which plugins you want to use(these would be injected to your project)  if you have cordova.js in any page, if page is hosted locally(within your app), it would be able to access plugin.

If you are however uncertain, would recommend remaining in PGB 2.9 since it seems to work for you.
Photo of Serge Charbit

Serge Charbit

  • 75 Posts
  • 0 Reply Likes
Thanks Isamel, we will see.
Best regards
Serge
Photo of Neil Appalsamy

Neil Appalsamy

  • 27 Posts
  • 1 Reply Like
Isamel - thanks for your help. Seems to be working now.

Regards

Neil
Photo of Zahir

Zahir

  • 3500 Posts
  • 40 Reply Likes
Hi All,

Do you still need assistance on this matter, or we would close the topic?
Let us know.
Thanks.

This conversation is no longer open for comments or replies.