incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Maj (JIRA)" <>
Subject [jira] [Updated] (CB-1013) Refactor all platform's device plugin into a common device plugin
Date Wed, 11 Jul 2012 21:12:33 GMT


Filip Maj updated CB-1013:

    Component/s:     (was: Bada)
                     (was: WP7)
                     (was: BlackBerry)
                     (was: Android)
                     (was: iOS)
> Refactor all platform's device plugin into a common device plugin
> -----------------------------------------------------------------
>                 Key: CB-1013
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: CordovaJS
>    Affects Versions: 1.9.0
>            Reporter: Filip Maj
>            Assignee: Filip Maj
>             Fix For: 2.0.0
> Almost all of the implementations' device plugin does the same thing:
> 1. On construction, attach to the CordovaReady internal event
> 2. Inside this event, fire off {{exec}} to a "device" service requesting the "getDeviceInfo"
> 3. When that info becomes available, assign the device information to the device plugin
properties and fire off the {{CordovaInfoReady}} event.
> The one black sheep in this approach is iOS. iOS instead has the native framework directly
call the device plugin's {{setInfo}} method (essentially circumventing {{exec}}). This is
a problem for emulation layers such as Ripple, where {{exec}} is the abstraction/hook that
needs to be utilized.
> May need to implement a few platform-specific merge plugins for device, but the core
pattern exists in the common one.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message