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

Removed unused `hasAction` and `action` properties from iOS

parent f08726fc
Loading
Loading
Loading
Loading
+0 −4
Changes for src/ios/APPLocalNotification.m: 0 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -103,21 +103,17 @@
{
	double               timestamp          = [[options objectForKey:@"date"] doubleValue];
	NSString*            msg                = [options objectForKey:@"message"];
	NSString*            action             = [options objectForKey:@"action"];
    NSString*            sound              = [options objectForKey:@"sound"];
    NSString*            repeat             = [options objectForKey:@"repeat"];
	NSInteger            badge              = [[options objectForKey:@"badge"] intValue];
	bool                 hasAction          = ([[options objectForKey:@"hasAction"] intValue] == 1) ? YES : NO;

	NSDate*              date               = [NSDate dateWithTimeIntervalSince1970:timestamp];
	UILocalNotification* notification       = [[UILocalNotification alloc] init];

	notification.fireDate                   = date;
	notification.hasAction                  = hasAction;
	notification.timeZone                   = [NSTimeZone defaultTimeZone];
    notification.repeatInterval             = [[[self repeatDict] objectForKey: repeat] intValue];
	notification.alertBody                  = ([msg isEqualToString:@""]) ? nil : msg;
	notification.alertAction                = action;
    notification.soundName                  = sound;
    notification.applicationIconBadgeNumber = badge;