Loading src/ios/APPLocalNotification.m +7 −7 Changes for src/ios/APPLocalNotification.m: 7 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -98,9 +98,12 @@ /** * @private * Erstellt die Notification und setzt deren Eigenschaften. */ - (UILocalNotification*) prepareNotification:(NSMutableDictionary*)options { UILocalNotification* notification = [[UILocalNotification alloc] init]; double timestamp = [[options objectForKey:@"date"] doubleValue]; NSString* msg = [options objectForKey:@"message"]; NSString* title = [options objectForKey:@"title"]; Loading @@ -110,20 +113,17 @@ NSInteger badge = [[options objectForKey:@"badge"] intValue]; NSDate* date = [NSDate dateWithTimeIntervalSince1970:timestamp]; UILocalNotification* notification = [[UILocalNotification alloc] init]; notification.fireDate = date; notification.timeZone = [NSTimeZone defaultTimeZone]; notification.repeatInterval = [[[self repeatDict] objectForKey: repeat] intValue]; if ([msg isEqualToString:@""]) { //No message, we just want to update the badge notification.alertBody = nil; } else { if (![msg isEqualToString:@""]) { notification.alertBody = title ? [NSString stringWithFormat:@"%@\n%@", title, msg] : msg; } if (sound != (NSString *) [NSNull null]) { if (sound != (NSString *) [NSNull null]) { notification.soundName = [sound isEqualToString:@""] ? UILocalNotificationDefaultSoundName : sound; } Loading Loading
src/ios/APPLocalNotification.m +7 −7 Changes for src/ios/APPLocalNotification.m: 7 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -98,9 +98,12 @@ /** * @private * Erstellt die Notification und setzt deren Eigenschaften. */ - (UILocalNotification*) prepareNotification:(NSMutableDictionary*)options { UILocalNotification* notification = [[UILocalNotification alloc] init]; double timestamp = [[options objectForKey:@"date"] doubleValue]; NSString* msg = [options objectForKey:@"message"]; NSString* title = [options objectForKey:@"title"]; Loading @@ -110,20 +113,17 @@ NSInteger badge = [[options objectForKey:@"badge"] intValue]; NSDate* date = [NSDate dateWithTimeIntervalSince1970:timestamp]; UILocalNotification* notification = [[UILocalNotification alloc] init]; notification.fireDate = date; notification.timeZone = [NSTimeZone defaultTimeZone]; notification.repeatInterval = [[[self repeatDict] objectForKey: repeat] intValue]; if ([msg isEqualToString:@""]) { //No message, we just want to update the badge notification.alertBody = nil; } else { if (![msg isEqualToString:@""]) { notification.alertBody = title ? [NSString stringWithFormat:@"%@\n%@", title, msg] : msg; } if (sound != (NSString *) [NSNull null]) { if (sound != (NSString *) [NSNull null]) { notification.soundName = [sound isEqualToString:@""] ? UILocalNotificationDefaultSoundName : sound; } Loading