You need to pass a ‘file entry’ (as described here) to the open
function, not a file path. You can obtain a file entry either by displaying a dialog and ask the user to grant access to the file you want to open or by adding the right permissions to your manifest file and using getEntryWithUrl
, as described here.