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

Add api/way to get plugins results even when Cordova activity restarts

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-android
    • Labels:
      None

      Description

      In android when you have a plugin that opens new activity the CordovaActivity will be killed and you won't get the result from the plugin.
      The new activity will get the results but because the plugin objects are dead and the webview reloaded you can get the data to the js callback.
      The most noticeable example is the camera plugin. (And maybe its the same with even more platforms)
      possible solution for this is to add metadata to the device ready event with incoming data from plugins.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                riknoll Richard B Knoll
                Reporter:
                Bnaya Bnaya
              • Votes:
                1 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: