Currently, I am utilizing Monaca.mobi to develop a hybrid app. Interestingly, when I compile the app for IOS, everything runs smoothly; however, there seems to be an issue with audio playback on an android device (specifically Nexus 7). Strangely enough, in the Monaca debugger, the audio functions properly. Could this discrepancy be due to some unknown specifics about android devices, such as certain app permissions?
The sound is triggered through an angularJS function that activates upon specific button clicks. Although I am confident in the accuracy of this code, it might be helpful to provide it for reference:
function DontAsk($scope){
$scope.play = function(){
var audio = new Audio();
audio.src = 'sounds/DontEventAsk.mp3';
audio.play();
}}
I appreciate any insights or guidance on this matter.