So, as you know, iOS 8 finally brought IndexedDB to Mobile Safari. I may be biased, but I find features like this far more useful than CSS updates. Not to say that I don't appreciate them, but to me, deep data storage on the client is something that is more practical and useful to more people. Of course, I work for a company that is all about designers and not developers, so what do I know? ;)
This is a pretty exciting change. If you've recently updated to the latest version of Cordova, you will notice that a new platform exists: browser. What exactly does this mean? It means the browser is now (well, becoming) a viable way to test your PhoneGap/Cordova applications. For a long time now I've done a lot of my development in the browser. Most of the time I'm not concerned about some random Cordova feature, instead I'm more concerned about something else. So I'll skip, or mock, a Cordova feature and focus on the important stuff. But eventually I hit that point where I need to do something via a core plugin and then I leave the desktop. Now we have an alternative.
Pardon the cryptic title. Earlier this morning I was working on a demo (the result of which is documented here) that I knew was going to be rather simple. Therefore I decided to skip using Ionic since AngularJS would have been overkill for what I was producing. I was ok with that, but what I really didn't like was losing live reload and logging in my terminal. Turns out there is a rather obvious way to get that.
How cool is NCDevCon? The presentation I finished 10 minutes ago is online. Now. There may be some audio issues in the middle (had some feedback) so you may want to switch to headphones (let me know), but overall, check it out and let me know. I've made no secret of my love for Ionic and I hope this helps people get acquainted with it.
p.s. I didn't include my slide deck and example apps, but if folks would like them let me know and I'll post a copy.
Yesterday I ran into an odd issue with an Ionic demo. I was trying to run it on an iOS device and it kept hanging. After about 5 seconds of hanging, I'd see
(lldb) and then nothing else would happen. I switched to using the Cordova CLI and confirmed the same thing happened there. After a bit of Googling, I found myself on the Ionic forums at this thread: Error when doing 'ionic run ios'. Long story short, there is a process, lldb, that is hanging around and blocking access to the device. Use the suggested
pkill lldb command and you should be good to go.
Just a quick note to let folks know that Ionic has been updated - both the framework (the UI and UX bits, basically what you see) as well as the CLI itself. This forum post details the changes in the Ionic framework itself: http://forum.ionicframework.com/t/v1-0-0-beta-12-krypton-koala-released/9435.
As for the CLI, I'm not aware of a document just for that, but the latest version is 1.2.4 and a cool new addition has landed. You can now seed an Ionic project with the contents of a directory. This joins the existing other options (one of the three main templates or a CodePen) and is a great addition. Personally I think the "blank" template is perfect (and wish the Cordova default project was as good), but I know I'm going to need to tweak it a bit and once I do, I'll create a copy and use it for future Ionic projects.
In honor of this release - here is a result from a Google image search for "krypton koala":
Image credit: Discovery News
So earlier today before the OMG A WATCH IT BURNS event, David asked me a question about Ionic on Twitter:
A few years back I wrote a series of blog entries (linked to at the bottom) that discussed building a simple RSS reader application with PhoneGap/Cordova. The application used two variables, a simple name and RSS url, to drive an application that would grab the RSS feed, make a list, and let you read individual entries in the app. The final version of the app made use of the (non-core at the time) ChildBrowser plugin to let you read the entry on the site itself. (This was especially useful for RSS feeds like mine that show partial content in RSS.) I decided to update this application to make use of Ionic. It isn't an incredibly complex app, but I thought folks would be interested in the update.