0

I've seen an app that activates the lock-screen after showing a local notification (so the user has to enter the passcode).

... and now I wonder how they did this, since I need this kind of functionality for one of my projects. It might even pass Apple's review process because it does make sense for this app... (and, yes, I'm aware that Apple might reject it, but I'd like to give it a shot).

How would I do this???

Swissdude
  • 3,486
  • 3
  • 35
  • 68
  • 2
    App or it didn't happen (coincidental auto-lock; app defined PIN & customized lock screen) – Anya Shenanigans Dec 09 '14 at 23:28
  • Imagine the misery this could cause. Write an app that locks the screen. Unlock it, the app launches, and the screen locks. Repeat forever. Definitely won't be permitted in the App Store. – ceejayoz Dec 10 '14 at 01:26
  • You most like likely didn't see the app go to your lock screen, only a lock-screen like duplicate created by the app, for the app. – Quill Dec 10 '14 at 02:51
  • It's a parental control app called «Time Lock» and it certainly doesn't fake the lock screen as I have to type in my own code. It also wouldn't work with a duplicate screen as the lock screen appears when the app is in the background (firing a local notification and then goes to the lock screen). Unfortunately, the app isn't free, so I doubt you guys will invest money just to check what I claim (it's true, though, believe me :) – Swissdude Dec 11 '14 at 08:44

2 Answers2

0

I don't believe it is possible as the framework that handles this is private.

Choppin Broccoli
  • 3,048
  • 2
  • 21
  • 28
0

iOS 8.1 does not offer API to do this. Most likely you have seen an App implementing its own lock screen. You will need to implement something similar.

You can find examples on GitHub, e.g. https://github.com/venmo/VENTouchLock

tomi44g
  • 3,266
  • 1
  • 20
  • 28