Thanks for an excellent framework. I have a question about Assets that I fail to understand by reading the documentation: Is it possible to cache an asset specified by remote URI (an mp3) so that you can listen to it with Expo Audio framework even when you’re in flight mode?
I find no examples anywhere of how to create an Asset with a remote url and then download it. Please help!
Thanks for your reply. I still fail to understand how to do this initial connected fetch. The link you provided explains how to preload an image using the Image.prefetch(url) method, but not how to do it for any other file type.
I’m building a music player in which mp3s are retrieved by scannable codes containing remote URLs. After this code is scanned, I want to provide functionality to fetch the mp3 and store it locally, so that the audio is playable even if the user goes on an airplane. Much like Spotify’s download feature. How would I turn a remote URL (like “https://mywebsite.com/audio/MySong.mp3”) into a downloaded and stored Asset?