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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Master
    • Fix Version/s: 2.2.0
    • Component/s: cordova-android
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: