I am currently utilizing Firebase Cloud Messaging in order to send daily notifications to iOS users who have installed a PWA app. Upon testing, I noticed that each token is limited to receiving only 2 notifications successfully. Any attempt beyond that will show as successful in the logs, but the user does not actually receive the notification. Further testing is required on Android to determine if this issue is specific to iOS.
const message = {
notification: {
title: "Practice Reminder",
body: "Time for your daily fretboard practice!",
},
token: data.token,
};
getMessaging().send(message)
.then((response) => {
// Response is a message ID string.
console.log('Successfully sent message:', response);
})
.catch((error) => {
console.log('Error sending message:', error);
});