cordova-plugin-nativeaudio
cordova-plugin-nativeaudio copied to clipboard
No Audio After App Has Been Closed and Re-Opened
I have my preload code in in an event listener in Ionic so that it loads even if the template is cached:
$scope.$on("$ionicVew.beforeEnter", function () {
try {
window.plugins.NativeAudio.preloadSimple('MySound', 'path/to/sound.aac');
}
};
Yet, if I close the app (both iOS and Android) by using the app manager, and then re-open the app, my sounds no longer play.