Skip to content

on Android, DocumentHandler fails when URI is pointing to file in persistent storage #10

Description

@jbenson77

I'm trying to use this code:
handleDocumentWithURL(
function() {console.log('success');},
function(error) {
console.log('failure');
if(error == 53) {
console.log('No app that handles this file type.');
}
},
'file:///data/data/com.highbrookcreate.wf3/files/files/my_downloads/sobrite.pdf'
);

The URI 'file:///data/data/com.highbrookcreate.wf3/files/files/my_downloads/sobrite.pdf' is valid and verified. But when I try to run this my app crashes with "Unfortunately, has stopped"

If I replace the URI with "http://www.highbrookcreate.com/workingfires/sobrite.pdf" everything works great.

On iOS if my URI is 'cdvfile://localhost/persistent/PDFS/sobrite.pdf' everything also works.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions