mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-19 13:08:21 +08:00
fix(messaging,ios): crash receiving notification with image (#3701)
Currently receiving notifications with images will crash the app on iOS (Fixes #3447, #3616). Patch proposed by @actuosus, thanks to him 🙌 #3447 (comment) [publish]
This commit is contained in:
committed by
GitHub
parent
5cda0ddf3c
commit
f889646d2e
@@ -113,7 +113,7 @@
|
||||
}
|
||||
|
||||
// message.mutableContent
|
||||
if (apsDict[@"mutable-content"] != nil && [apsDict[@"mutable-content"] isEqualToString:@"1"]) {
|
||||
if (apsDict[@"mutable-content"] != nil && [apsDict[@"mutable-content"] intValue] == 1) {
|
||||
message[@"mutableContent"] = @([RCTConvert BOOL:apsDict[@"mutable-content"]]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user