-
Notifications
You must be signed in to change notification settings - Fork 130
resolveNativePath getting error 'uri'. How to debug this one? #65
Comments
I am running on an Android Device (Google Pixel 4a, Android 11) and I have the same problem, please help! |
Same her:
on real devices: pixel 2 and pixel 3 with Android 11. I think it is related to the filetype (I try opening CSVs). Inside of |
The same happening here. This actually happens for Android 10+ devices. Did anyone find any solution for this? |
For Android 10, add |
I did same as @Houdhey said but it did not work for all files (for example CSV not working for me). I use:
I did couple of changes out of some of the open PR and it works fine for those files I use (no guarantee):
|
@CoooWeee Works perfectly! @hiddentao Can you please merge this? Otherwise filetypes like csv, pdf etc. would not resolve the path.. |
@Crwd Could you raise this as a PR please? Then I can merge it. |
@hiddentao I created a PR now ... base on #65 (comment) |
Merged and published 1.6.0. Thanks @jbagaresgaray ! |
@hiddentao you're welcome and thanks too @CoooWeee as well... |
For android 10 you have to add following to AndroidManifest.xml: android:requestLegacyExternalStorage="true" Google / Android don't want you to use "MANAGE_EXTERNAL_STORAGE" permission. |
At least it should return error object so it will easy to debug. Not getting any clue what is happening here.
It is happening only for pdf & docs files
Here i want native file path to find original file name.
Ionic: 4
@ionic-native/[email protected]
[email protected]
Please any one can help me out.
Note: i am checking this on android emulator not on android device..
`import { FilePath } from '@ionic-native/file-path/ngx';
import { FileChooser } from '@ionic-native/file-chooser/ngx';
this.fileChooser.open().then(fileUri => {
this.filePath.resolveNativePath(fileUri).then(resolvedNativePath => {
}).catch(err=> {
console.log(err); -> it getting 'uri'
})
})`
The text was updated successfully, but these errors were encountered: