tunnela opened a new issue, #1536:
URL: https://github.com/apache/cordova-android/issues/1536

   # Feature Request
   
   ## Motivation Behind Feature
   <!-- Why should this feature be implemented? What problem does it solve? -->
   
   Currently, if you select file(s) via the <input type="file"> element and the 
system decides to kill the Activity, the selected files will not be reachable 
when the `Activity` restores. The problem can be reproduced by enabling 
`Android > Settings > Developer Options > Don't keep activities`.
   
   ## Feature Description
   <!--
   Describe your feature request in detail
   Please provide any code examples or screenshots of what this feature would 
look like
   Are there any drawbacks? Will this break anything for existing users?
   -->
   
   A new `CordovaPlugin` is needed, which correctly returns the selected files 
with Cordova's `resume` event. `CordovaPlugin` at:
   
   
[SystemWebChromeClient.java#L231-L253](https://github.com/apache/cordova-android/blob/d02f8eafe8e34e33971c2e6dad2449cf1655ac99/framework/src/org/apache/cordova/engine/SystemWebChromeClient.java#L231-L253)
   
   ...needs to be replaced with this new `CordovaPlugin`.
   
   ## Alternatives or Workarounds
   <!--
   Describe alternatives or workarounds you are currently using
   Are there ways to do this with existing functionality?
   -->
   
   I created a new Cordova plugin to solve this problem. See it here:
   
   
[https://github.com/tunnela/cordova-plugin-pending-files](https://github.com/tunnela/cordova-plugin-pending-files)
   
   However, the implementation is not optimal, as I had to create a new class 
that extends the `SystemWebChromeClient` class of the `cordova-android` package 
and which is set the new `WebChromeClient` when the plugin is initialized. This 
may cause unexpected behavior. Therefore the new `CordovaPlugin` should be part 
of the `cordova-android`.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to