Posted: March 14th, 2011 | Author: Andrew Gleave | Filed under: couchdb, iphone, mobile | No Comments »
I’m working on a cool new project which makes use of a lot of exciting new tech: jQuery Mobile, PhoneGap, CouchDB (Couchbase) and Django, and I wanted to enable the iPhone and Android PhoneGap apps to push binary attachments directly to CouchDB, without having to proxy through Django.
I had a look around and couldn’t find any existing plugins which could upload binary attachments to CouchDB (I could have used an XHR request to post the photo data, but I didn’t want to Base64-encode the photos as it can cause Out of Memory exceptions on devices with high-res cameras and increases the file size by ~1.4x), so I decided to write a quick Objective-C plugin. PhoneGap has a simple plugin system which enables native code plugins to be exposed to DOM which means I can call my upload method, pass it the photo’s file URI, and let the plugin handle uploading the content.
The plugin is up on GitHub. Feel free to fork and send pull requests.
Posted: June 17th, 2010 | Author: Andrew Gleave | Filed under: iphone, mobile, portfolio | No Comments »
We recently had the privilege of working with Suzuki UK developing two iPhone applications to complement their Legends of Suzuki exhibition at the Manx Museum. Suzuki have a long and illustrious history at the Isle of Man TT and 2010 is their 50 year anniversary and they wanted to provide an interactive element to their exhibition.
The Legends of Suzuki exhibition at the museum comprises all sorts of Suzuki memorabilia, from the bike Mike Hailwood rode in his final TT victory in 1979 , to leathers, helmets and bikes from many other TT champions stretching back to the 1963 50cc winner Mitsuo Ito. If you’re on the Island and are a TT fan, you should certainly check it out!
Working with Manx National Heritage, who provided the content, we built an audio guide app which provides commentary and information for some of the exhibits and a “Gallery Tour” app which includes photos, information and video of covering significant events in Suzuki’s history at the Isle of Man TT.
The gallery app has rare and early photos of the first Suzuki team in 1960 as well video clips of Mike Hailwood, the 1960’s riders, Mick Grant, and more recent stars such as Cameron Donald and Bruce Anstey.
Both free can be downloaded now from the App Store:
Legends of Suzuki Exhibition Archive Gallery
Legends of Suzuki Exhibition Audio Tour
We also built a simple web-based version of the audio tour app for iPhone and Android (2.0+) users which is virtually identical to the native iPhone app. Go to http://bit.ly/suzukiaudiotour on your iPhone, iPad, iPod Touch or Android phone to check it out!
We had great fun making the apps, we hope you find them useful.
Posted: June 14th, 2010 | Author: Andrew Gleave | Filed under: cocoa, iphone, mobile, portfolio | Tags: portfolio | No Comments »
We’ve just released a simple iPhone app for Ronaldsway Airport here on the Isle of Man.
The application is free, simple, and quick, and shows arrival and departure information for flights to and from the Island helping you keep up to date while on your iPhone, iPad or iPod touch.
If you live on the Island or are visiting, you can download it from the App Store here.
Posted: April 20th, 2010 | Author: Andrew Gleave | Filed under: Company, iphone, mobile, portfolio, streamory | Tags: ipad, iphone, streaming, streamory | 2 Comments »
For the last couple of months we’ve been working on technology to enable anyone to stream live and pre-recorded video to iPhone, iPad and iPod Touch devices.
Today, we’re pleased to announce Streamory, our in-alpha service which lets users easily stream their own video and audio to the iPhone with only a couple of clicks. Streamory takes the hard work of configuring and setting up a streaming infrastructure, and instead lets you simply upload a video or input stream and, with a single click, publish a stream for use in your site or iPhone / iPad app.
You can check our simple web-based demo iPhone app on the Streamory site – make sure you’re using an iPhone or iPad for best experience, though! The demo app demonstrates some different types of output Streamory can generate, as well as adaptive bandwidth streams which give you higher or lower quality content automatically as available bandwidth changes.
We’ve already got some great ideas to make it easy for users to create iPhone-ready video streams without the fuss, but we’d love to hear what you think so get in touch and let us know! :)
We’re not ready for beta testers yet, but if you’d be interested in participating, drop us a line and we’ll get back to you when we’re ready.
Andrew Gleave is the lead developer of iPhone and mobile apps at Red Robot Studios. Considering developing a mobile app? Contact Red Robot Studios to see how we can help.
Posted: April 9th, 2010 | Author: Andrew Gleave | Filed under: iphone, mobile, mobile app | No Comments »
Yesterday Apple announced the fourth release of the iPhone OS. There are a lot of changes to the platform but some of the less-discussed improvements are ones which bring ‘enterprise-ready’ features to the iPhone. These features really open up the potential for using iPhone and iPad devices securely in a business context.
With iPhone OS 4, iPhone and iPad now support:
- SSL VPN Support
- Multiple MS Exchange Accounts
- Mobile Device Management – Remotely configure, update and wipe devices
- Data Encryption
- In-House App Distribution – Distribute and update your enterprise apps to company devices wirelessly
All of these are important features for most medium and large businesses, but being able to remotely update and sync your company iPhones and iPads is a real clincher. The ability for an enterprise to write and deploy its own apps (not distributed with the App Store) to staff devices wirelessly over WiFi or 3G, is the only reliable way of making sure all your devices are up to date: waiting for users to sync with iTunes mean it could takes weeks for all devices to get an update.
Add the ability to encrypt user data, access your network securely though a VPN and remotely manage and wipe devices, and you’ve got a pretty good case for building mobile apps which help you to do business, and that don’t give the Sys Admins a security and management headache.
I’ve only had a cursory look over the new SDK but the thing which stands out is that it really feels like a mature platform: there aren’t as many missing or restricted APIs and many of them have been massively expanded. This release will give rise to a whole host of apps just not possible before.
I can’t wait to take a closer look at the SDK in the next couple of days!
Posted: March 17th, 2010 | Author: Andrew Gleave | Filed under: iphone, mobile | Tags: iphone, mobile, services, streaming | 1 Comment »
There are many types of live streaming technology, some with wider adoption than others. Currently, the most widely used platform for streaming media is Adobe’s Flash technology, and is what sites like YouTube, BBC iPlayer and ABC.com use to stream their video content.
However, to watch the stream you need to have Flash Player installed. This isn’t a problem for typical computers – approx. 90% of all computers already have Flash installed – but if you’re an iPhone user, you’re out in the cold. Apple have been very public in their criticism of Flash, and some well-known Apple fans have claimed that it is the “leading source of application crashes on Mac OS X”.
Whether on not this is the case is beside the point, but what is interesting is the technology Apple have developed as an alternative to Flash streaming, for both the iPhone and, more generally, the web as a whole. Not only is it built on existing and well-established protocols and technology, it’s a proposed standard and headed off to the IETF for approval. The best bit of all: it’s very simple.
The technology is called HTTP Live Steaming and is fundamentally very straightforward to deploy. There’s no special / expensive kit required to deploy the stream, and instead uses standard web servers with minor modifications.
- No streaming software required.
- No extra ports have to be opened on your firewall as they do for RTSP / RTP.
- Clients can make use of standard HTTP constructs like caching, load-balancing and expiry headers to optimise delivery to clients.
- Only needs a standard web server. No extra modules necessary: just add the mime types to your config and you’re done.
- Clients can dynamically switch between streams of different quality depending on available bandwidth. If you’re on a WiFi network you can be watching a HD-quaity video stream; move to the garden (and 3G) and it can automatically switch to a lower quality stream with no interruption.
- Can support both live and VOD (Video on Demand) streams.
- The stream can be encrypted. Therefore, you don’t need access restrictions on the content itself. An authorised client is served a key which enables it to decrypt the stream on the fly. If someone gets hold of the stream but don’t have a key, it’s totally useless.
For the iPhone, or any other mobile device, this is all a great win: you can be on the move, your phone dynamically switching from 3G to EDGE to WiFi as you move around, and your stream will intelligently adapt to give you the best broadcast quality with no drops or stalls. Perfect.
Actually, this is where HTTP live streaming differs from the “progressive download” model where the client incrementally downloads the content as it the stream is being watched: with a progressive download you’re stuck with whatever resolution you chose when you started watching the stream, and if your bandwidth decreases, you stream will stall.
The only real downside is that it’s currently only supported on the iPhone and Mac OS 10.6. However, I can see Apple implementing it in its Windows version of QuickTime and Google implementing it for the Android platform so this shouldn’t be a limitation for long.
Another tangible advantage for this technology is that WebKit has native support for HTTP live streams being used as the source for
<audio> elements. This means you can use live streamed content in your web app as well as in native iPhone applications without the need for any external plugin.
This all adds up to a pretty attractive package, with minimum fuss on both the client and server sides.
Get in touch to find out how we can help you stream audio and video to your iPhone app.
Posted: February 20th, 2010 | Author: Andrew Gleave | Filed under: mobile | Tags: iphone, mobile, web app | 4 Comments »
Since the debut of the iPhone in 2007, mobile computing has really taken off and we’re now at the start of a trend which will shape the future of computing, and one that will likely have a greater effect on people’s day-to-day lives than the internet experience of today.
Mobile phones have had the ability to use the internet in a primitive way for 15 years or so, but it wasn’t until Apple released the iPhone SDK in 2008 and the subsequent development frenzy that ensued, that the surge in mobile internet use really began.
Today’s smartphones transcend simply retrieving email, sending SMSs and making calls and instead enable users to transform their phone in to whatever they want: a gaming machine, a sat nav, or a sleep cycle alarm clock; all with the download of an application. This shift has fundamentally altered the way consumers think about what a phone is and how they use it, so much so, that often its function as a phone becomes secondary.
The current darling of this revolution is Apple’s iPhone which currently has about 140,000 applications on its App Store, and with over 3 billion downloads is easily the most developed marketplace for mobile applications. In fact, stats gathered at the end of 2009 showed Apple captured 99.4% of the mobile application market!
Apple aren’t the only ones driving this push in to mobile application use. Google, Nokia, Palm, RIM (with their Blackberry) and Microsoft all have their own platform, all offering similar features, but all mostly incompatible.
So with apps being a hot (and potentially lucrative) market and a number of competing platforms to choose from, how do you go about developing and deploying mobile applications?
It boils down to two choices:
- A native application – A native application is one which is installed and runs on the device and is developed using the device’s SDK. Native applications only run on one platform so you need to develop a different application for each platform. Once built, the app can be sold on its respective marketplace such as the App Store, Android Marketplace or Nokia’s Ovi store.
- A mobile web app – A mobile app is a web-based application which runs in the browser of the device. There’s no special deployment necessary, it only requires a browser to use it. The goal is to build a web app which is usable by most, if not all, of the different types of device. However, in practice this isn’t particularity easy – yet.
Actually, if you just require a mobile version of your site, you have the option of doing nothing and hoping that your site is useable enough as it is for users browsing on their mobile device. This depends on how your site was built and the browser which is being used, so there could be a large number of users who may get a less than ideal experience.
Both web and native apps have their pros and cons and the choice often comes down to what you want the app to do, and what your users will expect.
The Apple's App Store and Google's Android Marketplace are two of a number of outlets for native applications
Developing a native application will provide benefits in its performance and tight integration with all the device’s features and APIs. A native application will give your users the best experience by taking full advantage of the full capabilities of the device.
Advantages like :
- They can use all of the device’s features such as its camera, GPS, compass, file system etc.
- They can be sold through a marketplace such as the App Store or Android Marketplace
- They have superior performance compared with a typical web app
- Don’t necessarily need to be connected to a 3G or WiFi network to function *
- They’re not running in a browser so there’s no restriction on the types of application that can be developed
*Improvements brought in with HTML5 will help web apps in some respect
Because a native app isn’t restricted to running in a browser they can do some pretty intensive things such as an augmented reality app to show you a data overlay on top of live video or full full 3D games. Neither of which would currently be possible with a web app.
But there are downsides, too:
- Typically higher development cost and longer lead time.
- Very little portability across platform – if you want your app to run on both the iPhone and Android it means building two separate versions.
So if you want to do anything that takes full advantage of a device’s capabilities, or do anything custom or unique, you’re likely looking at a native app. However, the issue of building and deploying to many different devices mean the overall cost can be high.
And this is where web-apps can really start to look like a great alternative: A web-based app should be able to run on any device with a browser, right?
Well, sort of.
The Mobile Web
Everything which you interact with on the internet (except the most basic of web pages) is a web app in one form or another: Facebook, Twitter, Flickr, your favourite blog – all in a broad sense are web apps.
The major advantage of web apps are that they can be used wherever you are, from any computer, via almost any browser. No downloading, no software updates and no uninstalling – just open a browser window, type the URL and hit Enter. Add that to fact that all devices have a web browser means that you have a potentially large number of users who are already familiar with how to get to and use your app.
However web development for mobile devices is still developing and it can be difficult to do things which would be straightforward in a native application. John Gruber has a great article on building iPhone Web Apps as an Alternative to the App Store which covers the topic nicely.
Even though currently it’s not possible to build a web app that will do everything a native app does, for some situations a mobile app is perfect. There’s some great work going in with jQTouch which is a tool that makes it easier to build mobile web apps for both the iPhone and Android, that look and feel more like a native application. There’s also PhoneGap, which enables a web app to be packaged up and deployed as a native application for the iPhone, Blackberry and Android and sold on their respective marketplace / store.
With these types of tools emerging, and the devices themselves becoming more powerful, it’s not long before web apps become the choice for a larger proportion of mobile applications. The fact that Apple (iPhone), Google (Android), Palm (Pre), Nokia and just announced RIM (Blackberry) are all backing the open source WebKit engine to power their web browsers, it’s a major step in getting a consistent experience across multiple devices. Knowing that an app will look and perform the same manner on all these devices is the Holy Grail of web development: write once, run anywhere.
The Webkit browser engine which powers a lot of modern smartphone browsers
Add to this HTML5 and the rapid development of browser technology and we’re closely approaching the point where we can use standard web technologies to build advanced mobile applications. In the next couple of years most, if not all, mobile platforms will have support for the following advanced features all of which will drasticly change both what web apps are capable of and what users will expect from them:
- Pure web-based 3D graphics via WebGL – enabling 3D games and modelling
- Standardised 2D graphics and animation – slick animation and graphics are trademarks of native applications’ rich interfaces
- Standardised video and audio support – no more plugins to watch movies or listen to streaming music
- Communication improvements
- Geolocation support – enable the browser to access your location
- Local storage and SQL databases – meaning data can be stored within the web application itself so you don’t always require an internet connection to use it. Google Apps provide this features already using Google Gears.
- Manifests and offline resource caching – movies and photos are still accessible even if you go offline
The future is looking bright for mobile web app development, and as the tools and browser technology get better, development will shift from native to web-based applications. The overall trend is that the “Internet is the platform” that all applications rely on – and not just the mobile ones.
“…development for a platform is a distraction. It’s taking our eyes off the ball, and ignoring the bigger shift that’s happening beneath our feet.”
Chris Messina – Referring to the fact that we should be developing for the web rather than for a single platform.
These types of device and the market for mobile applications in general is still young and it’s going to take a while for the game to play out. Native mobile applications, with their superior performance, slickness and better capabilities are going to be the choice for demanding or cutting edge applications – at least for the forseable future – but one thing you can bank on is that the web isn’t going anywhere. The web is the inevitable platform, and that means that we’ll see huge growth in web-based apps in the coming years.
Andrew Gleave is the lead developer of iPhone and mobile apps at Red Robot Studios. Considering developing a mobile app? Contact Red Robot Studios to see how we can help.