Saturday, October 5, 2013

Local push the issue

Brother code:
UILocalNotification * notification = [[UILocalNotification alloc] init];
if (notification! = nil)
{
NSDate * now = [NSDate new];
notification.fireDate = [now dateByAddingTimeInterval: 10];
notification.timeZone = [NSTimeZone defaultTimeZone];
notification.alertBody = @ "test";
notification.soundName = UILocalNotificationDefaultSoundName;
notification.applicationIconBadgeNumber = 1;
[[UIApplication sharedApplication] scheduleLocalNotification: notification];
[Notification release];
}.
The question now is, the program in the background when you can pop a push notification, but the phone icon icon on the desktop program numbers can not be changed, which is why ah?


Reply:
Notified again when the refresh icon?
Reply:
Simulator problem, the real machine Ok
Reply:
Real machine OK, simulator issue. Khan -

No comments:

Post a Comment