Commit 0c21b4bd authored by yogevbd's avatar yogevbd

Fix unrecognized selector crash on UNNotification cast

parent 3bc86e3b
......@@ -247,10 +247,12 @@ RCT_EXPORT_MODULE()
NSMutableDictionary* info = [[NSMutableDictionary alloc] initWithDictionary:@{ @"identifier": identifier, @"completionKey": completionKey }];
// add text
NSString* text = ((UNTextInputNotificationResponse*)response).userText;//[response objectForKey:UIUserNotificationActionResponseTypedTextKey];
if ([response isKindOfClass:[UNTextInputNotificationResponse class]]) {
NSString* text = ((UNTextInputNotificationResponse*)response).userText;
if (text != NULL) {
info[@"text"] = text;
}
}
NSDictionary* userInfo = response.notification.request.content.userInfo;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment