Ionic: Preparing for iOS 9

iOS 9 is releasing next week, and with it comes some changes and bugs that Ionic developers need to be aware of. Even if your app was published for an earlier version of iOS, you might still need to make some fixes due to regressions released by Apple in the web browser. Some minor things, …

I know what you did last summer

Yes, bram.us is still a thing. Save a few posts mid July not that much has happened around here. So, what have I been up to the past two months? Here’s a small list (saving the best for last): I reviewed a book I went diving I renovated my house I went camping with my …

ionic emulate “[__NSArrayM localizedDescription]: unrecognized selector sent to instance 0x7fd64840e790”

Got this error when running ionic emulate: 2015-03-16 11:13:24.112 ios-sim[50548:9106309] stderrPath: /Users/bramus/Projects/ionic/todos/platforms/ios/cordova/console.log 2015-03-16 11:13:24.113 ios-sim[50548:9106309] stdoutPath: /Users/bramus/Projects/ionic/todos/platforms/ios/cordova/console.log 2015-03-16 11:13:24.140 ios-sim[50548:9106309] -[__NSArrayM localizedDescription]: unrecognized selector sent to instance 0x7fec20d08400 2015-03-16 11:13:24.140 ios-sim[50548:9106309] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[__NSArrayM localizedDescription]: unrecognized selector sent to instance 0x7fec20d08400’ *** First throw call stack: ( 0 …

Deploying Your Ionic App to Heroku

Not much to it actually, as you only need Express to serve your Ionic app: // server.js, Heroku will autostart this when found var express = require(‘express’), app = express(); app.use(express.static(‘www’)); app.set(‘port’, process.env.PORT || 5000); app.listen(app.get(‘port’), function () { console.log(‘Express server listening on port ‘ + app.get(‘port’)); }); Deploying Your Ionic App to Heroku →

Syncing Data With Firebase Using Ionic Framework

$scope.list = function() { fbAuth = fb.getAuth(); if(fbAuth) { var sync = $firebase(fb.child(“users/” + fbAuth.uid)); var syncObject = sync.$asObject(); syncObject.$bindTo($scope, “data”); } } Once syncObject is bound to $scope.data, which is provided by AngularFire, data will be synchronized consistently in three ways (UI, $scope.data, and Firebase): Calling $scope.data.todos.push({title: result}); will update the UI and also …