Sean Molyneaux created CB-14131:
-----------------------------------

             Summary: Android N unable to open locally downloaded file
                 Key: CB-14131
                 URL: https://issues.apache.org/jira/browse/CB-14131
             Project: Apache Cordova
          Issue Type: Bug
          Components: cordova-plugin-inappbrowser
    Affects Versions: Master
         Environment: Android N
            Reporter: Sean Molyneaux
         Attachments: inappbrowers.png

The InAppBrowser is unable to open "file://" see blog 
[https://inthecheesefactory.com/blog/how-to-share-access-to-file-with-fileprovider-on-android-nougat/en]

iOS works fine and this is specifically on android.

 

*Suggestion*

Add in method to handle local files using the "FileProvider". There are other 
plugins that specifically handle this but are a bit bloaty to add just to open 
a local file. This feature would be nice to have in the inAppBrowser plugin as 
a matter of convenience.

If this does not seem applicable please close, so we can devise a light plugin 
to handle this in our projects going forward.

 

*Steps we took to fix the problem*
 # Added in open local file method
 # Used the FileProvided to get a acceptable uri
 # Open the uri with an intent to a default application

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to