mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-28 20:25:41 +08:00
fix for 'show_in_foreground' flag of local notification for iOS 10+
This commit is contained in:
@@ -45,6 +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"];
|
||||
}
|
||||
|
||||
NSDate *fireDate = [RCTConvert NSDate:details[@"fire_date"]];
|
||||
|
||||
if(fireDate == nil){
|
||||
|
||||
Reference in New Issue
Block a user