@nutnonsee wrote:
We’re trying to play audio that still playing after the app is in background with our Ionic + Vue project.
We’re using web audio API to play audio.
const audio = new Audio(url) audio.play()
Then we install plugin, enable it and it works on Android but not on iOS
import { BackgroundMode } from '@ionic-native/background-mode' ... BackgroundMode.enable()
Background mode is set for audio in Xcode.
Any help or guidance would be very much appreciated, thanks.
Posts: 1
Participants: 1