Shazron Abdullah created CB-2621:
------------------------------------

             Summary: Add the cordova.exec bridge for OS X
                 Key: CB-2621
                 URL: https://issues.apache.org/jira/browse/CB-2621
             Project: Apache Cordova
          Issue Type: New Feature
          Components: CordovaJS, Mac
            Reporter: Shazron Abdullah
            Assignee: Shazron Abdullah
             Fix For: 2.6.0


1. Signature, in order: 
https://github.com/apache/cordova-ios/blob/b8796d1130b64169835d8acbaaa4c9e2de8a321d/CordovaLib/cordova.ios.js#L904

This uses the callbackId opaque reference for callbacks, we are not going to do 
direct callbacks using the JavaScriptCore C API to keep it consistent with iOS 
(for possible plugin dual platform use).

2. Register the bridge object under window.cordovabridge, and the exec function 
is:

        cordovabridge.exec(callbackId, service, action, actionArgs);       

3. Create the exec function in cordova-js

4. Create sample plugins (based on CDVPlugin), conform to iOS signature (we 
already have one, Notification, that can be adapted)


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to