I am planning a part of a project and would like to ask for some advice.
The project up to now is purely Ionic 4 & Capacitor based (no Cordova).
What I would like to accomplish is to:
- Check if the file exists on the local device
- If it does not exist, then download the user’s profile picture from a specific server URL and store it on the local device for use
- Display the image on their profile page.
What I can see is that the native File Transfer (Cordova) method might be an option, however, I would actually like to keep the project away from Cordova, and just stick with Capacitor, but from what I can see in the FileSystem docs of Capacitor, it does not have the same functionality?
Firstly, am I wrong in thinking this way?
Then secondly what is the best way for me to accomplish my set-out goal?