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
621
621
self.bridge .launchOptions [UIApplicationLaunchOptionsLocalNotificationKey];
622
622
623
623
if (initialNotification) {
624
+ initialNotification[@" userInteraction" ] = [NSNumber numberWithInt: 1 ];
624
625
initialNotification[@" remote" ] = @YES ;
625
626
resolve (initialNotification);
626
627
} 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 ];
627
633
resolve (RCTFormatLocalNotification (initialLocalNotification));
628
634
} else {
629
635
resolve ((id )kCFNull );
You can’t perform that action at this time.
0 commit comments