jquery - Phonegap App build with Phonegap Build alerts with errors on iOS -


we developing app phonegap 2.5.0 (since there no newer version in phonegap build) , running troubles.

the app simple test app use compare jquery mobile , sencha touch. therefore have created index.html file witch contains links jquery.html , sencha.html implementing same app different ui calling same phonegap triggers.

we have 2 build configurations:

we use same web content on our locally build android app. remove <script> element loads cordova.js 2.5.0 , packs content same config.xml use in locally built android app. locally built android app works fine. problems occur when app built online ios via phonegap build. android app built online works, expected. ios makes troubles.

what happens on ios:

  • index.html loaded
  • we able click on link switches jquery.html or sencha.html.
  • after switching app alerts dialogs rotating through following messages:
    1. gap:["device","getdeviceinfo","device455526479"]
    2. gap:["networkstatus","getconnectioninfo","networkstatus8103758"]
    3. gap:["app","show","app8103759"]
  • then can access app , able current gps position.

any ideas? lot!

our config.xml:

<?xml version="1.0" encoding="utf-8"?> <cordova>     <access origin="http://127.0.0.1*"/>; <!-- allow local pages -->     <access origin=".*"/>     <content src="index.html" />     <log level="debug"/>     <preference name="usebrowserhistory" value="true" />     <preference name="exit-on-suspend" value="false" />     <plugins>         <plugin name="app" value="org.apache.cordova.app"/>         <plugin name="geolocation" value="org.apache.cordova.geobroker"/>         <plugin name="device" value="org.apache.cordova.device"/>         <plugin name="accelerometer" value="org.apache.cordova.accellistener"/>         <plugin name="compass" value="org.apache.cordova.compasslistener"/>         <plugin name="media" value="org.apache.cordova.audiohandler"/>         <plugin name="camera" value="org.apache.cordova.cameralauncher"/>         <plugin name="contacts" value="org.apache.cordova.contactmanager"/>         <plugin name="file" value="org.apache.cordova.fileutils"/>         <plugin name="networkstatus" value="org.apache.cordova.networkmanager"/>         <plugin name="notification" value="org.apache.cordova.notification"/>         <plugin name="storage" value="org.apache.cordova.storage"/>         <plugin name="filetransfer" value="org.apache.cordova.filetransfer"/>         <plugin name="capture" value="org.apache.cordova.capture"/>         <plugin name="battery" value="org.apache.cordova.batterylistener"/>         <plugin name="splashscreen" value="org.apache.cordova.splashscreen"/>         <plugin name="echo" value="org.apache.cordova.echo"/>         <plugin name="globalization" value="org.apache.cordova.globalization"/>         <plugin name="inappbrowser" value="org.apache.cordova.inappbrowser"/>     </plugins> </cordova> 

are sure have included phonegap js file specific ios?? usually, error occurs when wrongly include cordova/phonegap files (belongs android) ios development. in downloaded phonegap 2.5.0 folder, have different sub folders different platforms. have make sure use right javascript files given specific platforms.

possible scenario:

you might have included cordova-2.5.0.js file android folder make ios build. might have misspelled js file in www folder. (less possibility though).

fix:

use javascript (cordova-2.5.0.js file) file ios folder inside phonegap-2.5.0 folder ios build.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -