I’m saving file locally on IOS using cordova-plugin-file to .file.dataDirectory, this returns a file path such as this:
file:///Users/admin/Library/Developer/CoreSimulator/Devices/C568070E-F4E9-4737-B49C-2AD141A4FB3B/data/Containers/Data/Application/5CA69467-F33B-40B1-A024-DEE32D20AB2A/Library/NoCloud/thumb_spotId215.png
I then pass the file path to Ionic’s normalizeURL() which (on emulator) returns
http://localhost:8080/Users/admin/Library/Developer/CoreSimulator/Devices/C568070E-F4E9-4737-B49C-2AD141A4FB3B/data/Containers/Data/Application/5CA69467-F33B-40B1-A024-DEE32D20AB2A/Library/NoCloud/thumb_spotId215.png
Everything works fine. However every time I run the simulator string {someID} (which I assume to be APP UID)changes and invalidates the path.
Containers/Data/Application/**{someID}**/Library/NoCloud/thumb_spotId215.png
In simulator it’s not a major issue. However will the {someID} change when I update the app through app store?
If it does change what’s the way to handle this? Is there a way to retrieve the {someID} dynamically (I could then use it to re-create valid url)
thanks