Surfing at BONDI
Opera recently announced that we have joined the OMTP (Open Mobile Terminal Platform). One major reason for this was to bring our experience of mobile and device development to the newly announced BONDI specification. BONDI is a new specification for standardising how web applications can access device features such as cameras, geolocation, address books and so on, in a safe manner. Previous to BONDI applications that make use of device features, such as Opera Platform and more recently Palm Pre, had to invent their own proprietary API that were not portable between different implementations and providers. If it becomes adopted, BONDI will improve the interoperability and usefulness of these features across the Web, and offline applications that use web technologies as the interface layer.
In my mind, even though this is primarily designed for mobiles, it is also very useful for a whole range of devices, and even laptops and netbooks now that thinks like built-in web cams have become commonplace and built-in 3G cards are appearing on netbooks. I personally think this set of APIs will bring the web as an application platform closer to reality.
As well as the reference platform, LiMo have announced they will be implementing the specification in their Linux platform, which currently ships on around 33 mobile models such as those on the Japanese DoCoMo network.
This specification brings a number of things to the table for web applications and widgets:
- Application Invocation
- This allows an application to launch a native application on a device, such as the phone or camera application.
- This allows an application to interact with the messaging functionality on a device, such as SMS, MMS, and e-mail.
- User Interaction
- This allows the application UI to be more integrated into the expected device behaviour, such as respecting the alert settings, or minimise and maximise behaviour.
- Persistent Data
- This provides offline storage for web applications, such as saving application data and state.
- This provides functionality for applications to access and manipulate media on a device, such as photos, movies and music.
- Phone Status
- This allows access to a device’s status, such as battery life, signal strength and accelerometer.
- System Events
- Apparently TBD.
- Application Settings
- This provides functionality to manage the application settings.
- This provides an API for geolocation, that is aligned with the W3C Geolocation spec.
- This provides access to the device’s camera, so an application can take photos or movies.
- Communications Log
- This provides access to the call log, such as recently received and sent calls, SMS and so on.
- Personal Information Management
- This allows access to the PIM data on a device, such as the address book, task list and calendar events.
As you can see this gives access to a lot of functionality that developers of desktop applications have enjoyed for a long time (such as the Address Book or Core Data APIs in OS X). With all this power comes a lot of responsibility. A user probably doesn’t want any old app to take a photo of them while they are surfing the web, eating cornflakes in their underwear, or access which girl they rang on Valentines day. There is a full security architecture built into the specification, which I won’t get into here, and I assume there has to be a way for a user to grant access rights for functionality on a per app basis.
All together the BONDI spec is a nice step forward, and I look forward to seeing what comes out of it in the year ahead.