We provide complete mobile and web apps development solutions

Friday, January 31, 2014

Show Notification Banner in IOS

If the ios app is running in the background, it won't show the notification banner, this is by design. But if you want to show the custom banner in the status bar whether the application in foreground or in the background, you can show the  banner.

  UILocalNotification *localNotification = [[UILocalNotification alloc] init];
        localNotification.userInfo = userInfo;
        localNotification.soundName = UILocalNotificationDefaultSoundName;
        localNotification.alertBody = @"test";
        localNotification.fireDate = [NSDate date];
        [[UIApplication sharedApplication] scheduleLocalNotification:localNotification];


0 coment�rios:

Post a Comment

Online Training

Your Name :
Your Email: (required)
Your Message: (required)

Powered by Blogger.

Recent Posts

Find Us On Facebook

Popular Posts