I'm actually developping an application with Ionic 2 / angular2.
It's an app to learn english tenses that runs with a SQLite database.
I would like to add a background sound that plays in loop all the time.
The users can exercice themselves with a quizz. I would like to play sound effects when the user submit his answer.
Two different sounds : one for good and one for bad answers.
I've already tried with Nativeaudio, angular-audio and Ionic audio modules but each times the documentation is based on javascript and not typescript, or it is not helpfull.
With native audio, I've succeed once playing the background sound but after it didn't work at all and came up with an error : EXCEPTION: Uncaught (in promise): A reference does not exist for the specified audio id.
For the other solutions (angular-audio and ionic-audio) either i didn't get how to install it either, once installed, I had nothing : no sound and no error.
Thank you very much for your help.
Install:
Usage:
Reference: https://ionicframework.com/docs/native/native-audio/