I think what the error is saying is that it cannot connect with the cordova api on the native device. I am receiving the same error from the Safari Web Inspector. I am loading an external .aspx page into my iOS phonegap 2.2 app. One thing that seemed to cause the error was my .aspx page was checking if the device was iOS and dynamically adding additional javascript files to the page. These additional javascript files were added after the initial javascript files had downloaded. After I removed the additional js files, I still receive the error, albeit less frequently. Now it seems that whenever some images in the site download after the cordova-2.2.js file downloads I receive the error. If the images download before the javascript then my app works fine. I do not know if I am treating the symptoms of some larger problem or treating the actual problem. I would look at the order in which your files are downloading, there might be a clue there.
On Thursday, 6 December 2012 22:20:33 UTC-5, Matt Gowie wrote:I am getting the above error from the Safari Web Inspector when I do 'window.location.reload()' in the console and reload the project on my iPhone. It is the first thing that gets outputted. My project's app.js file gets run but, but onDeviceReady is never called. I started to try and debug this by adding console logs here and there, but the error continues to come up first all the time. I even removed the require.js script line from my index.html file (which means no Javascript files were running!) to see if the error persisted, and it did. So I have something going wrong with my xCode/Cordova project which is causing this problem, but I have no idea what it is as I am seeing nothing when compiling/building the project. The only recent change I made was that I added the ShareKit plugin a couple weeks ago, which actually gave me a lot of problems, but I had all of that figured out after a week. The app has been running fine, but suddenly it's giving me this error and I really don't know where it's coming from.Has anyone run into this problem or know of anyway I can further debug the problem so that I can find out where the error is coming from? The js bug which points to the HTML5 header for the index.html file is of no help at all, so I really don't know where to go from there.Thanks!
so are you saying you completely removed cordova from the requirejs part of your code?