Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48983

Audio auto not working in iOS app

$
0
0

I am building a religious app which has functionality of local notification and auto play sound. Its runing perfect on android phone. But not working on the iOS . Am using the javascript to play the sound. My code is below:

let audio = new Audio(src);
audio.load();
audio.play();

This worked when I press button like start prayer. But not work when prayer time come and local notification fire.

Please help to overcame this problem it causing me to rewrite the whole app in swift.

Kind regards
Mukesh

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48983

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>