CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

EWTBackgroundLocalNotification 0.1.0

EWTBackgroundLocalNotification 0.1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Apr 2015

Maintained by EwyynTomato.




  • By
  • EwyynTomato

Show queued local notification as soon as app enters background.

Preview

preview

Installation

Usage

  • Import the header
#import "EWTBackgroundLocalNotification.h"
  • Create one or multiple local notification
//Sample local notification
UILocalNotification *notification = [[UILocalNotification alloc] init];
[notification setAlertBody:@"message"];
[notification setTimeZone:[NSTimeZone defaultTimeZone]];
[notification setUserInfo:@{@"info":message}];
  • Add the notification to queue
[EWTBackgroundLocalNotification queueLocalNotification:notification];
  • The local notification(s) queued would be shown when the app is brought to background.