Pallavi Prasad
Pallavi Prasad

Reputation: 587

How to add buttons or clickable text to the lock screen in an iOS app?

I am developing an iOS app and one requirement of the app is that the user has to be able to interact with the app through buttons or clickable text on the lock screen. A minimum of 5 and a maximum of 8 buttons are to be shown to the user on the lock screen.

Please suggest what I can use to add this feature to the application.

Upvotes: 0

Views: 1033

Answers (1)

Jake
Jake

Reputation: 13761

Unfortunately, you cannot add controls of any kind to the lock screen in iOS. However, one option that might work for you is a today extension. Today extensions are accessible from the lock screen if enabled by the user.

Apple Docs on Today Extension:

https://developer.apple.com/library/content/documentation/General/Conceptual/ExtensibilityPG/Today.html

Here’s a good tutorial on how to build a Today Extension:

https://www.raywenderlich.com/150953/today-extension-tutorial-getting-started

Upvotes: 1

Related Questions