Skip to content

Commit

Permalink
callback fix from upstream havesource#102
Browse files Browse the repository at this point in the history
  • Loading branch information
scyclops committed Nov 7, 2023
1 parent 2922f5a commit a5868eb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ios/AppDelegate+notification.m
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,13 @@ - (void)userNotificationCenter:(UNUserNotificationCenter *)center
case UIApplicationStateInactive:
{
NSLog(@"coldstart");
self.launchNotification = response.notification.request.content.userInfo;

if ([response.actionIdentifier rangeOfString:@"UNNotificationDefaultActionIdentifier"].location == NSNotFound) {
self.launchNotification = userInfo;
} else {
self.launchNotification = response.notification.request.content.userInfo;
}

self.coldstart = [NSNumber numberWithBool:YES];
break;
}
Expand Down

0 comments on commit a5868eb

Please sign in to comment.