Skip to content

Commit

Permalink
Merge pull request #19 from nSimonFR/master
Browse files Browse the repository at this point in the history
Add support for alertTitle
  • Loading branch information
zxcpoiu authored Sep 7, 2018
2 parents 8dc1492 + f3d7733 commit f7d2cd8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ios/RNVoipPushNotification/RNVoipPushNotificationManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ + (UILocalNotification *)UILocalNotification:(id)json
NSDictionary<NSString *, id> *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;
Expand Down

0 comments on commit f7d2cd8

Please sign in to comment.