From f3d7733ac76bce728388d90884951e06fe003c6d Mon Sep 17 00:00:00 2001 From: Nicolas Simon Date: Wed, 25 Jul 2018 16:35:19 +0200 Subject: [PATCH] Add support for alertTitle --- ios/RNVoipPushNotification/RNVoipPushNotificationManager.m | 1 + 1 file changed, 1 insertion(+) diff --git a/ios/RNVoipPushNotification/RNVoipPushNotificationManager.m b/ios/RNVoipPushNotification/RNVoipPushNotificationManager.m index 1190577..cf347e1 100644 --- a/ios/RNVoipPushNotification/RNVoipPushNotificationManager.m +++ b/ios/RNVoipPushNotification/RNVoipPushNotificationManager.m @@ -44,6 +44,7 @@ + (UILocalNotification *)UILocalNotification:(id)json NSDictionary *details = [self NSDictionary:json]; UILocalNotification *notification = [UILocalNotification new]; notification.fireDate = [RCTConvert NSDate:details[@"fireDate"]] ?: [NSDate date]; + notification.alertTitle = [RCTConvert NSString:details[@"alertTitle"]]; notification.alertBody = [RCTConvert NSString:details[@"alertBody"]]; notification.alertAction = [RCTConvert NSString:details[@"alertAction"]]; notification.soundName = [RCTConvert NSString:details[@"soundName"]] ?: UILocalNotificationDefaultSoundName;