App Store rejected - Dialog boxes during startup

  • 1
  • Question
  • Updated 7 years ago


App Store rejected my app due to the dialog boxes popping up during app launch. Attached are the screen shots of the errors. I'm using phonegap build app id: 61737.

I'm guessing it has something to do with my config.xml or phonegap version. Any ideas?

..

......
Photo of asunar.git

asunar.git

  • 4 Posts
  • 0 Reply Likes

Posted 8 years ago

  • 1
Photo of John Saya

John Saya

  • 68 Posts
  • 7 Reply Likes
Most likely it's the name you're using for your phonegap.js or cordova.js script called from your index.html page.

I had the same problem. Just rename your PhoneGap script to just cordova.js, instead of cordova-1.6.1.js or whatever it's named currently. Otherwise PhoneGap Build gets confused and uses the wrong one for iOS builds, causing those errors.
Photo of Tim Wentzlau

Tim Wentzlau

  • 133 Posts
  • 23 Reply Likes
The problem is that you include phonegap/cordova.js in your project when you submit it to Phonegap Build.
The phonegap/cordiva.js is platform depended and build includes the right one when it makes your apps. It is placed in the root of your project.
Photo of Kim Ras

Kim Ras

  • 45 Posts
  • 0 Reply Likes
Yes, I can confirm that you need to reference Cordova.js in the root foldet.. have had the exat same problem in my test environment.
I had read that the JS shoule be the same from PG1.5 but I have not had luck so I reverted back to renaming my cordova-1.7.0.js to Cordova.js, that works
Regards
Kim
Photo of asunar.git

asunar.git

  • 4 Posts
  • 0 Reply Likes
Thank you all. I will simply reference phonegap/cordova script from the index.html file as follows:

.... src="cordova.js" ..
Photo of Zahir

Zahir

  • 3500 Posts
  • 40 Reply Likes
Due to the thread inactivity, this issue is now closed.
Create a new issue if you have any other problem with PhoneGap Build.
Thanks