Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add image on lock screen in iOS app, when app is running in background

There are many question on site like

Programatically changing the iOS lock-screen ,

How to set lock screen , wallpaper and Ringtone programmatically in iPhone? All say that apple will reject if we modify the lock-Screen image.

But I seen it in many apps. Example Saavn is in AppStore.

In this if a song is playing and device is locked, It shows the image of the current album on the lock screen.

Please share if anybody know how it can be done. Thanks.

like image 406
HDdeveloper Avatar asked Dec 10 '25 00:12

HDdeveloper


1 Answers

Music apps can change the lock screen wallpaper because iOS automatically displays the album artwork for the song/podcast/etc that's playing (see MPMusicPlayerController docs). As far as I know, it's not an API that's publicly available to developers.

like image 56
Vinny Coyne Avatar answered Dec 11 '25 15:12

Vinny Coyne



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!