J'ai installé cordova-plugin-fcm et tout fonctionne bien sauf une petite chose. Lorsque l'application est en arrière-plan/fermée et que la notification push est envoyée à partir de Firebase, une notification apparaît dans les périphériques. En cliquant sur cette notification à partir du bac, mon application démarre, mais le contrôle n'entre pas dans fcm.onNotification().fcm.onNotification() ne pas être appelé en cliquant sur la notification lorsque l'application est en arrière-plan
Mon code app.component.ts ressemble à ce
fcm.onNotification().subscribe(data=>{
if(data.wasTapped){
console.log("Received in background");
console.log(data);
} else {
console.log("Received in foreground");
console.log(data);
};
});