Here we have sample code for local notification
UILocalNotification *notification = [[UILocalNotification alloc] init];
notification.alertBody =@"Test Message";
notification.soundName = UILocalNotificationDefaultSoundName;
[[UIApplication sharedApplication] presentLocalNotificationNow:notification];
No comments:
Post a Comment