Hey everyone. I'd like to start a discussion (as I assume there may not be one right answer, although maybe there is) about the best way to solve a problem I've run into a few times w/ Ionic apps. Mainly - I want to use some Cordova plugin (device, media, whatever) in my first view, but I can't because the deviceready event, and by proxy, ionicPlatform.ready, fires after that first view is up and running.
I spoke with someone a few weeks back recently when I first ran into this (and I forget his name, sorry!) who mentioned that my controller could use a service that can return a promise such that it is resolved when deviceready is done and would then be able to do whatever it needs to do.
I worked up another way as well by just using an initial view that's nothing more than a loading page (http://www.raymondcamden.com/2014/8/16/Ionic-and-Cordovas-DeviceReady--My-Solution).
I just can't help but think that this should be easier. Maybe I'm asking for too much, but I'd love it if the boiler plate code could handle this for me - basically - don't do any UI until deviceready so I can simply not worry about it. I understand that may not be an option, but I just wanted to throw this up here to see what other people think.