It looks like I can’t find the right path, I’ve tried a lot of paths but no one gave me the right result. My audio files are stored in assets/audio/, so I tried every possible interpolation:
“assets/audio/”+file
"/assets/audio/"+file
"android_asset/www/assets/audio/"+file
"/android_asset/www./assets/audio"+file
"android_asset/assets/audio/"+file
"/android_asset/assets/audio"+file
(following this article https://www.raymondcamden.com/2014/06/23/Cordova-Media-API-Example/)
Your answer solved my problem, thank you! By the way, I’ve tried your path more than a year ago, but I’ve now realized that - I don’t know why - my Ionic build doesn’t actually build a new apk file and sometimes it loads the previous version of the file (without the latest modifications I’ve done)…