cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard B Knoll (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-10930) startActivityForResult cancels pending Activity requests when new ones arrive
Date Tue, 22 Mar 2016 18:21:25 GMT
Richard B Knoll created CB-10930:
------------------------------------

             Summary: startActivityForResult cancels pending Activity requests when new ones
arrive
                 Key: CB-10930
                 URL: https://issues.apache.org/jira/browse/CB-10930
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android
            Reporter: Richard B Knoll


If a plugin makes multiple calls to {{cordova.startActivityForResult}}, only the last call
will actually get its result delivered to the plugin. All the others will get a canceled result.
The issue is that all of those activities will still be started but their results will be
thrown out. 

For example, if you call {{captureImage}} from cordova-plugin-media-capture five times in
rapid succession, the user will take five photos but only one of those photos will actually
be returned. The other four will just be lost. I don't think there is anything stopping us
from properly handling multiple pending requests.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message