Commit fe2116db authored by Sebastián Katzer's avatar Sebastián Katzer
Browse files

Added support for title property

parent 3e17f3cc
Loading
Loading
Loading
Loading
+2 −1
Changes for src/ios/APPLocalNotification.m: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -103,6 +103,7 @@
{
	double               timestamp          = [[options objectForKey:@"date"] doubleValue];
	NSString*            msg                = [options objectForKey:@"message"];
	NSString*            title              = [options objectForKey:@"title"];
	NSString*            sound              = [options objectForKey:@"sound"];
	NSString*            repeat             = [options objectForKey:@"repeat"];
	NSInteger            badge              = [[options objectForKey:@"badge"] intValue];
@@ -113,7 +114,7 @@
	notification.fireDate                   = date;
	notification.timeZone                   = [NSTimeZone defaultTimeZone];
	notification.repeatInterval             = [[[self repeatDict] objectForKey: repeat] intValue];
	notification.alertBody                  = ([msg isEqualToString:@""]) ? nil : msg;
	notification.alertBody                  = title ? [NSString stringWithFormat:@"%@\n%@", title, msg] : msg;
	notification.soundName                  = sound;
	notification.applicationIconBadgeNumber = badge;