0
アプリが強制終了されてもFCMコンソールから送信された通知を受信しています。 は、ここに私のクライアントコードです:アプリが強制終了されたときにFCMデータが受信されない
$ionicPlatform.ready(function() {
FCMPlugin.onNotification(
function(data){
if(data.wasTapped){
//Notification was received on device tray and tapped by the user.
alert(JSON.stringify(data));
}else{
//Notification was received in foreground. Maybe the user needs to be notified.
alert(JSON.stringify(data));
}
},
function(msg){
console.log('onNotification callback successfully registered: ' + msg);
},
function(err){
console.log('Error registering onNotification callback: ' + err);
}
);
})
問題が戻って受信されない通知呼び出しです。ログデータが表示されます。
View not ready. SAVED NOTIFICATION: javascript:FCMPlugin.onNotificationReceived()