Skip to content

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

@jbenson77

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.

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