How to download mp3 from server to device mp3 folder?

Hi there!
Im wondering about tutorial how to download a streaming mp3 file and store it to SDcard or outer mp3 folder ?
Is it available for ios or only for android?
Some kind of “Ionic view app” like downloading.
Thanks!