Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
Right now plugins can alter the result of
shouldInterceptRequest
via
remapUri
, but it would be nicer if they could actually return an
InputStream
.
Propose new API to be:
1. remapUri() to a "cdvplugin://PluginId" URI
2. add a handleOpenForRead() for dealing with these URIs
This way plugins can return streams not just for
shouldInterceptRequest
, but for all
CordovaResourceApi
usages.