Play alarm sound from online audio file

Hi Guys,


I am in the process of building an alarm clock app with the idea that I can add audio files on Amazon Web Services (AWS) so every time the alarm goes on, the user will hear a new tone rather than the preloaded ones they hear every morning.


However, the problem I am having is that whenever the app is not ON throughout the night and the user turns the screen off, the alarm will go back to the standard ringtone which I have set as it will not load up the audio file from AWS. Is there a way around this? Could anyone help?


Much appreciated.


Thanks.

Play alarm sound from online audio file
 
 
Q