Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-1745

Android's exec() function no longer returns the payload of synchronous calls

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Master
    • 2.2.0
    • cordova-android
    • None

    Description

      This isn't supported cross-platform, but did work on Android before the recent refactorings. We should deprecate it and remove support in 6 months.

      A a new Plugin class extends the org.apache.cordova.api.Plugin class and over rides the isSync method. The method is setup to return "true" every time. When the method is calls from the JavaScript side like this:

      var returnValue = cordova.exec(null, null, "PluginName", "method", [ "property" ]);

      The value of "returnValue" is "undefined".

      Attachments

        Activity

          People

            agrieve Andrew Grieve
            agrieve Andrew Grieve
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: