InfoQ

News

Adobe AIR 1.0 - Native OS Integration Problem

Posted by Jon Rose on Jan 28, 2008 05:49 PM

Community
Architecture,
.NET,
Java
Topics
.NET Framework ,
Web 2.0 ,
Rich Client / Desktop ,
Rich Internet Apps
Tags
Windows ,
Adobe Integrated Runtime ,
Flash ,
Adobe ,
Apollo
A frequent criticism of the Adobe AIR platform is that it lacks support for native OS integration, which is typically essential when building desktop applications. With the AIR 1.0 release coming soon, Mike Chambers of Adobe published a proof of concept last week that demonstrates how developers can work around this problem.
Two of the most requested features for Adobe AIR have been the ability to launch native executables from an AIR application, and the ability to integrate native libraries into an AIR application. Unfortunately, neither feature will be included in Adobe AIR 1.0.

However, this does not mean that you cannot build an AIR application that has closer / tighter integration with the underlying operating system.

...

The project is called CommandProxy. It provides a communication proxy between an AIR application and the underlying operating system and could theoretically work with other web based desktop runtimes (such as Mozilla Prism). Note, this project is in no way supported by Adobe. This is a proof of concept project that I put together to help developers understand one possible way to extend AIR functionality beyond that that is provided by the runtime.
Chambers proof of concept is fairly straightforward and easy to understand, but does it sufficiently address the native issue? Scott Barnes, a Microsoft evangelist, doesn’t believe so. He responded to Chambers post critiquing the lack of native support in the platform.
I don't know why AIR isn't looking to open its borders to native OS and it kind of illustrates the elephant in the room, in that when you go X-Platform with one bundle of code, something has to be left on the table. Native access to the operating system is one of these, and if any desktop platform is likely to succeed beyond a "Look ma, I just turned Flash into a desktop experience" then it's got to be more serious, focus on security (critically important) and ensure real world solutions can be built.
In a follow-up post Barnes detailed more of his concerns with the CommandProxy Chambers introduced:
The communication channel between the command proxy and AIR application looks like a potential vulnerability. One of the things application developers should worry about with security is insecure cross-process communication mechanisms hanging around on someone’s machine. For example if a process listens on a named pipe, and that named pipe has no ACLs and no validation of inbound communication, the process is vulnerable to all kinds of attacks when garbage is sent down the pipe. In the example on using the command proxy how do you secure it so that it doesn’t turn into a general purpose process launcher?
Chambers responded to Barnes in detail, starting with a forthright analysis of the proof of concept:
How feasible is it to actually build and deploy an application that uses a command proxy? My thoughts are that in most cases it is not feasible due to the complexity of development and distribution, although there may be instances where it could be useful.
Chambers finishes his follow-up post by touching on Adobe's plan for addressing the overarching issue:
Finally, the long term solution (and plan) is that the AIR runtime itself provide the low level functionality needed by developers. AIR 1.0 already provides access to the underlying operating system via number of APIs, and the scope of those APIs will only expand with each release.
For developers and architects in the InfoQ.com community, has this concern kept you from considering the Adobe AIR platform? Will Adobe have to fully address the native integration issue before you will be able/willing to implement desktop applications on the AIR platform?
You know, it's funny. . . by Gerald Anderson Posted Jan 28, 2008 8:00 PM
Holding off by Matt Giacomini Posted Jan 29, 2008 5:57 PM
Not so much an issue for current AIR plans by Roger Voss Posted Jan 31, 2008 6:23 AM
Windows native OS integration for AIR by Zoltan Csibi Posted May 4, 2008 8:49 AM
  1. Back to top

    You know, it's funny. . .

    Jan 28, 2008 8:00 PM by Gerald Anderson

    The very first project I conceived of doing based on AIR was a front-end interface to rsync, with progress bars, options settings, folder selections, etc. It was to be used by departmental non-geeks that just needed a pretty picture to look at while their backups ran. Was astonished during early research that AIR wouldn't support spawning/communicating with native apps, needless to say, that killed that idea. Ended up going to the old stand-by, Java/Swing. Blech ; )

  2. Back to top

    Holding off

    Jan 29, 2008 5:57 PM by Matt Giacomini

    I'm not going to seriously consider AIR until native OS integration is a solid component of the framework. This coming from a Flex and actionscript fan. I'm getting really tried of VM designers sand boxing us developers.

  3. Back to top

    Not so much an issue for current AIR plans

    Jan 31, 2008 6:23 AM by Roger Voss

    We already do Flex RIA web applications and so initial interest for AIR is to create hybrid versions of these apps that can also run on AIR, but with enhanced capabilities due to its additional APIs. The things in mind don't involve a need for process launching, etc. So for now would not be an issue for what we have in mind. Agree it would be good to see better interop capabilities added to the AIR runtime that facilitate more fascile native interactions, though.

  4. Back to top

    Windows native OS integration for AIR

    May 4, 2008 8:49 AM by Zoltan Csibi

    http://aperture.fluorinefx.com/

Educational Content

Bindings, Platforms, and Innovation

This presentation focuses on the Internet and separating myth from fact, history from the future, and the mundane from the imaginative. Bob Frankston presents a vision of what could and should be.

Orchestrating Long Running Activities with JBoss / JBPM

This article explores the use of JBoss and jBPM to implement design solutions that effectively address the issue of orchestrating long running activities.

Neo4j - The Benefits of Graph Databases

This presentation covers the use of graph databases as an optimal solution for data that is difficult to fit in static tables, rapidly evolving data or data that has a lot of optional attributes.

Realistic about Risk: Software development with Real Options

This session introduces Real Options and shows how it can help in running your project. Real Options is a decision-making process that can be used to manage risk.

Communication Flexibility Using Bindings

This article discusses the use of bindings on services and references (including the instance of non-configured bindings) as the means to implement SCA communications in a Web and SOA environment.

Writing DSLs in Groovy

After a short introduction to DSLs, Scott Davis plays with the keyboard showing how to approach the creation of a DSL by typing working snippets of Groovy code that get executed.

Scaling Agile with C/ALM (Collaborative Application Lifecycle Management)

IBM Rational and InfoQ present, Scaling Agile with C/ALM, an eBook showing organizations how to become “finely tuned software delivery machines” by enabling team integration and scaling.

Concurrent Programming with Microsoft F#

Amanda Laucher presents a real life enterprise application written in F#. She shows actual code snippets, explaining design decisions and suggesting how to use some of the F# constructs.