-
Notifications
You must be signed in to change notification settings - Fork 760
Uncaught typeError: Wrong type for parameter "uri" of resolveLocalFileSystemURI #646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
That's just speculation though. |
Weird...I would imagine that error happened on users first time app install and use....not months later, unless they changed phones and the new phone doesn't have external storage, but as best I can tell the user is still on the same device. What do you recommend I use so its internal to the device...not external? And switching to internal memory, on the app, I believe it wouldn't change the behavior...its still an internal directory to the app that the user can't physically get to, just a different location right? I wish Android did file systems the way iOS does. On iOS my app shows up as a folder in the users public "downloads" folder, its just symlink to the real folder embedded within my app directory structure. Clean and simple. |
IF
I don't know if I can answer that because it would depend on your own use case but I can give information. Historically the
Changing to use
There are some behaviour changes between internal and external storage since API 29 / Scoped Access Framework introduction. I can't remember on top of my head if SAF restrictions apply to app-specific external directories however, so behaviour differences might not apply to you here. SAF restrictions do not apply to internal storage.
The android equivalent folder for this would be MediaStore APIs is not very "filesystem-like" so it's not very feasible trying to interface with it from a "filesytem" api perspective. |
@breautek - as always, thanks for your thorough explanations. Well, turns out this particular user has a
That phone comes with 32G internal memory....so I am guessing the user doesn't have a microSD or removed it. I think maybe he removed it because my app launched without issue like 18+ times, then the last few times it started breaking. I think I am just going to move everything to To do this I think it would be, any comments would be appreciated:
|
On app startup, I am using the following code to check if an app directory exists and if not create it. It has worked fine forever - but on one users device I suddenly got the above error three times, once per each time the user started the app (within minutes of each other). This user is on Android 12, and has had my app on his device for about 3 months and had started it 17 times previously without the error, then on starts 18, 19 and 20 suddenly started generating this error:
Uncaught typeError: Wrong type for parameter "uri" of resolveLocalFileSystemURI
I have the following preferences set in my config.xml file:
The user did not remove and reinstall the app at any point. Its from the original install several months ago, so what could cause this error to suddenly kick in?
The text was updated successfully, but these errors were encountered: