You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Ionic 5, I am trying to create an app with audio-player which can play current audio and on completion of current track it can play next track even if the app is in background.
I am using this cordova-plugin-background-mode plugin to fulfill above requirement which is working as expected in Android but there is an issue in iOS as below.
If I play first track and keep the app in background, next track is not playing automatically. This issue is happening only in iOS.
// I have tried with below code also, but it is not woking.
cordova.plugins.backgroundMode.disableWebViewOptimizations();
Playing an audio as below.
audio = new Audio();
audio.src = url;
audio.play();
Can anyone please guide me how can I create an audio-player app using Ionic 5 which can play audio media in background ?
The text was updated successfully, but these errors were encountered:
Using Ionic 5, I am trying to create an app with audio-player which can play current audio and on completion of current track it can play next track even if the app is in background.
I am using this cordova-plugin-background-mode plugin to fulfill above requirement which is working as expected in Android but there is an issue in iOS as below.
If I play first track and keep the app in background, next track is not playing automatically. This issue is happening only in iOS.
Can anyone please guide me how can I create an audio-player app using Ionic 5 which can play audio media in background ?
The text was updated successfully, but these errors were encountered: