Open Jeet007das opened 4 years ago
use try/catch in finishNotificationResponse Method,
node_modules -> react-native-fcm->RNFIRMessagging.m
RCT_EXPORT_METHOD(finishNotificationResponse: (NSString )completionHandlerId){ RCTNotificationResponseCallback completionHandler = self.notificationCallbacks[completionHandlerId]; if (!completionHandler) { @try { RCTLogError(@"There is no completion handler with completionHandlerId: %@", completionHandlerId); return; } @catch (NSException e) { NSLog(@"Exception completionHandler: %@", e); }
} else {
@try {
completionHandler();
[self.notificationCallbacks removeObjectForKey:completionHandlerId];
}
@catch (NSException * e) {
NSLog(@"Exception completionHandler: %@", e);
}
}
}
Before openning an issue
When openning an issue, please include following information for better support