Display CFUserNotificationDisplayAlert on iPhone Lock Screen
Posted
by raziiq
on Stack Overflow
See other posts from Stack Overflow
or by raziiq
Published on 2010-02-04T12:35:18Z
Indexed on
2010/03/08
4:51 UTC
Read the original article
Hit count: 345
I m creating an app that has to display CFUserNotificationDisplayAlert even if iPhone Screen is Locked, currently i am using this code
CFOptionFlags responseFlags = 0;
CFUserNotificationDisplayAlert(20.0, 3, NULL, NULL, NULL, CFSTR("Hello"), CFSTR("Hello World"), CFSTR("OK"), NULL, NULL, &responseFlags);
This works great on Home Screen but doesnt pop up if the screen is locked. Is there anything else i have to add to it to make it appear on the Lock Screen as well?
© Stack Overflow or respective owner