In my ionic+cordova app, I have a link to a local mp3 file that I would like to play within the InAppBrowser. When I click on it, everything is ok and it starts playing:
However, once I hit that "Done" button on the top left, I get this screen:
How can I get the window to close when I hit the "Done" button? Here is the code I am using:
window.open('audio/sample.mp3', 'location=no');
Check this:
var yourWindow = window.open('audio/sample.mp3', 'location=no');
when it dones:
yourWindow.close();