I’m thinking (if I get some spare time) I might update my app to also provide album artwork… This SO answer looks like it might provide the right method: https://stackoverflow.com/a/59439048/3026149
I’m using the React version of F7. I’ve managed to get this function working without error, but the meta doesnt appear to be passing to the iPhone lock screen.
export function UpdateMetadata() {
if ('mediaSession' in navigator) { //execute your code
window.MediaMetadata.metadata = new MediaMetadata({
title: 'Unknown',
artist: 'Unknown2',
album: 'Unknown3'
})
alert('Loaded')
} else {
console.log('MediaMetadata is not supported')
}
Can you tell me how did you manage to get your audio’s metadata ?
Did you use a plugin or something ? All the plugins I’ve checked out seem outdated or the steps to make them work aren’t very clear…
Thanks