push notifications

is it possible to detect when the lock screen is being looked at to present a push notification at that time?


example:


my app can calculate how long the phone was been locked, id like to display the minutes it has been locked when the phone lock screen is looked at to give an option or the user to decide wether or not he/she wants to unlock it.


can this be done?

Replies

Would this answer your question ?


https://stackoverflow.com/questions/49773068/local-notification-on-locked-screen-ios