Display CFUserNotificationDisplayAlert on iPhone Lock Screen

Discussion in 'iOS Development' started by raziiq, Feb 6, 2010.

  1. raziiq

    raziiq New Member

    Aug 23, 2009
    Likes Received:
    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?

Share This Page