You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/09/23 17:46:18 UTC

[GitHub] [cordova-plugin-file] breautek commented on issue #495: Bug: Wrong type for parameter "uri" of resolveLocalFileSystemURI: Expected String, but got Null.

breautek commented on issue #495:
URL: https://github.com/apache/cordova-plugin-file/issues/495#issuecomment-926025194


   How are you obtaining the path for `resolveLocalFileSystemURI`?
   
   > The first time it is installed and ran, the Directory is good. Any subsequent time, the Directory is null.
   To return to a working state, the app must be fully deleted from the device.
   
   This makes it seem like you might be storing a full absolute path an iOS device and attempting to use it everywhere, instead of resolving paths relatively. This path shouldn't changed during the lifetime installation of the app. It may even remain in tact if the user installs the app via an iTunes backup. Reinstalling the app usually causes the UUID to change.
   
   The bottom line is, if you're storing a full absolute path of a file, you're gunna run into issues with iOS because that path is only valid in a certain context.
   
   > Our team cannot replicate on Android. iOS only right now.
   
   Android does not have UUID's in the filepaths, which also enforces my suspicion that you're attempting to use full paths in an invalid way.
   
   > On the second launch or update of the same Bundle ID on the device
   
   This is the only thing that doesn't quite make much sense, the UUID should remain consistent even after app updates, as long as it's on the same device. The UUID may change if you uninstall and reinstall the app.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org