Search This Blog

Showing posts with label local notification. Show all posts
Showing posts with label local notification. Show all posts

Tuesday, 18 March 2014

iOS Local Notifications

Here we have sample code for local notification

    UILocalNotification *notification = [[UILocalNotification alloc] init];
    notification.alertBody =@"Test Message";
    notification.soundName = UILocalNotificationDefaultSoundName;
    

    [[UIApplication sharedApplication] presentLocalNotificationNow:notification];