FCM navigation when app is killed not working

this.fcm.onNotification().subscribe(data => {
  if(data.wasTapped){
  this.router.navigate(['/detail'])
  } else {
   this.router.navigate(['/detail'])
  };
});

it’s working in background and foreground when app not killed , but when app killed i received notification i click it but he don’t navigate to page detail

I have same issue

You find a solution ?