Merge pull request #740 from hisokakei/ios-foreground-notif
Enable foreground notification on ios
This commit is contained in:
commit
c9903706ab
@ -45,6 +45,12 @@ RCT_ENUM_CONVERTER(NSCalendarUnit,
|
||||
content.userInfo = details;
|
||||
content.badge = [RCTConvert NSNumber:details[@"badge"]];
|
||||
|
||||
if([details objectForKey:@"show_in_foreground"] != nil) {
|
||||
if([(NSNumber *)details[@"show_in_foreground"] boolValue] == YES) {
|
||||
[content setValue:@YES forKeyPath:@"shouldAlwaysAlertWhileAppIsForeground"];
|
||||
}
|
||||
}
|
||||
|
||||
NSDate *fireDate = [RCTConvert NSDate:details[@"fire_date"]];
|
||||
|
||||
if(fireDate == nil){
|
||||
|
Loading…
x
Reference in New Issue
Block a user