Ionic noob question, cordova 404?

so far I’m loving the implementation of ionic, however I’m confused about a few things that I dont think are clear in the documentation.

  1. why is cordova.js a 404 when I view my project? I’m trying to build some getCurrentLocation into my project, and I’m just not clear on where it fits. its commented that its 404 during dev, but how do I build the deviceReady and all the other bits?

  2. I also get

Usage of ‘–family’ is deprecated in 3.x. Use --devicetypeid instead.
Usage of ‘–retina’ is deprecated in 3.x. Use --devicetypeid instead.
Session could not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=2 “Simulator session timed out.” UserInfo=0x7ffeb0701180 {NSLocalizedDescription=Simulator session timed out.}

when i do my ionic emulate ios, googling this turned up no results.

thanks matt

Regarding your first question: Ionic platform gives you a function, with or without cordova it will work:$ionicPlatform/ This will result in $ionicPlatform.ready(function(){ /*Whatever you want to do, do it here*/ });

Regarding the second question, I have no idea :wink: I’m not testing using ios in emulator or device at the moment.

  1. Cordova will 404 during local development. It get injected during the cordova build stages when prepare a native file.
  2. What version of cordova and ios-sim do you have? With Xcode 6, you’ll need ios-sim 3.0 and you should upgrade to cordova 3.6

Thanks for the reply. I’m coming from the Appcelerator world and things are much different. I’ve messed with Angular JS on another project so I sorta got that, but my disconnect is when, where and how do I start checking for Network Connectivity, getCurrentPostition, Access Camera all that sort of stuff; I dont now how to start testing the “native” side of my app.

as for the other issue, I down loaded ionic two days ago, so i thought they packaged Cordova, so wouldn’t they been up to date?


mhartington -
yeah, I’m using xcode 6.0.1, and I downloaded ionic tuesday, and I check the version in the build directory, using var CORDOVA_JS_BUILD_LABEL = ‘3.6.3’;

I’ve watch every tutorial and read every document and I do the steps as outlined but my app will not fireup.
Even when i google the issue, i only come up with my own post that i posted today :smile:

any ideas ?

Are you building your app with sudo? It’s known to throw that error when the simulator doesn’t have permission to run the app because of it being built under root.

Also try starting the simulator on its own (without running an app) and Reset Content and Settings.
I’ve also read that a simple computer restart might fix this issue.

yes, I was running as sudo, I recently updated my xcode to 6.0.1 and now I cant even start my sim. Oh the joys.

Worst case I’ll try the phonegap build service.