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

inAppBrowser not working on android>=7 when target version>=23

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      cordova-android is 6.4.0, but affects all versions

      Description

      Starting November, all playstore apps must be submitted with target-version>=23.

      When you do that, the following error occurs  when trying to open a PDF.

      08-07 16:30:15.303 21228 21228 D InAppBrowser: InAppBrowser: Error loading url file:///storage/emulated/0/Android/data/com.app.example/cache/cache_documents/this_is_a_sample_file.pdf:*android.os.FileUriExposedException*: file:///storage/emulated/0/Android/data/com.app.example/cache/cache_documents/this_is_a_sample_file.pdf exposed beyond app through Intent.getData()

      Works fine when target-version is <=23 or android version of the device is < 7.0 

       

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pablo.caselas Pablo Caselas

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment