File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -621,9 +621,15 @@ - (void)handleRemoteNotificationRegistrationError:(NSNotification *)notification
621621 self.bridge .launchOptions [UIApplicationLaunchOptionsLocalNotificationKey];
622622
623623 if (initialNotification) {
624+ initialNotification[@" userInteraction" ] = [NSNumber numberWithInt: 1 ];
624625 initialNotification[@" remote" ] = @YES ;
625626 resolve (initialNotification);
626627 } else if (initialLocalNotification) {
628+ NSMutableDictionary *userInfo = [content.userInfo mutableCopy ];
629+ NSMutableDictionary *localInfo = [initialLocalNotification.userInfo mutableCopy ];
630+ localInfo[@" userInteraction" ] = [NSNumber numberWithInt: 1 ];
631+ initialLocalNotification.userInfo = localInfo;
632+ initialLocalNotification[@" userInteraction" ] = [NSNumber numberWithInt: 1 ];
627633 resolve (RCTFormatLocalNotification (initialLocalNotification));
628634 } else {
629635 resolve ((id )kCFNull );
You can’t perform that action at this time.
0 commit comments