18

I'm building an app which would have to have the ability to show my own views on the iPhone lock screen. I've seen lots of apps which let you customize the lockscreen and so forth and these were App Store apps so i'm guessing it has to possible.

I just can't figure out what to use in the iOS SDK to even try implementing this.

Oh and P.S: same goes for wallpapers—can we change this from inside our app?

Cœur
  • 37,241
  • 25
  • 195
  • 267
nextbighit
  • 199
  • 1
  • 1
  • 4
  • 5
    You've seen an app that lets you customise the lock screen in Apple's app store? *Really?* – John Parker Jun 05 '11 at 14:56
  • There are some apps that will create images which the user can then set as the lockscreen background. For example a notes app will let the user enter text, and select a background, then overlay the note onto the background and save the result to the photo library, then tell the user to open the settings app and set the background to the saved image. This is more of a hack than anything useful as the "notes" can't be automatically changed. – Jonathan. Jun 05 '11 at 15:05
  • @Jonathan - I get you. (Was coming at it from the "setting the wallpaper != customisation" perspective.) :-) – John Parker Jun 05 '11 at 15:08
  • @middapark, I know, I was aiming the comment at the OP. :) – Jonathan. Jun 05 '11 at 15:15
  • 1
    There is a well known app on the AppStore that changes the lockscreen wallpaper but only while it is running in the foreground. It's "Ambiance". If you play a file with it it apparently exploits the media display feature Norbert May mentions below. – tim Sep 17 '12 at 03:23

1 Answers1

19

It can be changed programmatically (change to SpringBoard), but it won't make the way to the (official) AppStore. So if you want to build an app that can change something like the lock screen wallpaper or the ring tone which you usually need the Settings app for, you have to publish your application via Cydia, not Apple's store.

For a sample code block, see this answer.

Community
  • 1
  • 1
Norbert
  • 4,239
  • 7
  • 37
  • 59
  • quick reply thank you very much. Too bad though, just out of curiosity how is it then that the Remind Me app in the appstore does what is apparently not permitted by apple – nextbighit Jun 05 '11 at 15:05
  • It just generates a picture and needs you (the user) to set it as the wallpaper. Not very user friendly... – Norbert Jun 05 '11 at 15:08
  • Music/audio apps such as Spotify and Soundcloud set the currently playing album art for the lock screen. Is audio player artwork perhaps a special allowed case by Apple? Or maybe they let certain 'big' apps/companies get away with it? – Iain Mullan May 14 '12 at 15:48
  • 3
    Take a look at the [`MPNowPlayingInfoCenter`](http://developer.apple.com/library/ios/#documentation/mediaplayer/reference/MPNowPlayingInfoCenter_Class/Reference/Reference.html) class. – Norbert May 15 '12 at 11:07
  • I would like to say this is false. I have seen many apps that can change the lock screen image without the user needing to do anything. I have seen everything from animated 3D scenes to video players. These apps are all over the official AppStore. – Justin May 10 '13 at 18:11
  • 5
    @Justin: This is not possible without jailbreaking except you're creating an audio playing app having album artwork (displayed while playing sound). – Norbert May 13 '13 at 10:25