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.
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?
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.
Regarding your first question: Ionic platform gives you a function, with or without cordova it will work: http://ionicframework.com/docs/api/service/$ionicPlatform/ This will result in $ionicPlatform.ready(function(){ /*Whatever you want to do, do it here*/ });
Regarding the second question, I have no idea I’m not testing using ios in emulator or device at the moment.
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
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.
Edit:
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.