Commit 3e17f3cc by Sebastián Katzer

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

parent f08726fc
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment