localnotification - Alarm Local Notification at IOS 7 Locked screen Objective-C -
i'm practicing develop alarm app alarm on ios 7. alarm time on ios7 however, stuck @ local notification @ locked screen, this. my notification code did:
in appdelegate.m
my code
[[uiapplication sharedapplication] registerusernotificationsettings:mysettings];      // handle launching notification     uilocalnotification *locationnotification = [launchoptions objectforkey:uiapplicationlaunchoptionslocalnotificationkey];  .... ..in viewcontroller.m..  [self schedulelocalnotificationwithdate:correctdate]; .... (void)schedulelocalnotificationwithdate:(nsdate *)firedate {      uilocalnotification *localnotification = [[uilocalnotification alloc] init];      localnotification.firedate = firedate;     localnotification.alertbody = [nsstring stringwithformat:@"alert fired @ %@", firedate];     localnotification.soundname = uilocalnotificationdefaultsoundname;      localnotification.applicationiconbadgenumber = numberreminder;     [[uiapplication sharedapplication] schedulelocalnotification:localnotification]; } who can that?
thanks
third-party apps don’t appear on lock screen way system alarm-clock app does—your app can produce ordinary notifications. if you’d api added full-screen alert style, might try filing enhancement request.
Comments
Post a Comment