flag checking fix
This commit is contained in:
parent
0577518578
commit
02ac39678e
@ -45,8 +45,10 @@ RCT_ENUM_CONVERTER(NSCalendarUnit,
|
||||
content.userInfo = details;
|
||||
content.badge = [RCTConvert NSNumber:details[@"badge"]];
|
||||
|
||||
if(details[@"show_in_foreground"]) {
|
||||
[content setValue:@YES forKeyPath:@"shouldAlwaysAlertWhileAppIsForeground"];
|
||||
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"]];
|
||||
|
Loading…
x
Reference in New Issue
Block a user