Open laurentperez opened 3 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Reopening as stalebot incorrectly closed it
Feature request
The onDeletedMessages() callback is available at https://firebase.google.com/docs/reference/android/com/google/firebase/messaging/FirebaseMessagingService#onDeletedMessages()
Specifically, for the use case "Too many messages stored on the Firebase Cloud Messaging server. This can occur when the app's servers send a bunch of non-collapsible messages to Firebase Cloud Messaging servers while the device is offline."
Allow implementation of onDeletedMessages() https://github.com/dpa99c/cordova-plugin-firebasex/blob/master/src/android/FirebasePluginMessageReceiver.java to be able do not a custom handling
To let the app react to deletedMessages(), and do a custom resync, per Google documentation at https://firebase.google.com/docs/cloud-messaging/android/receive#override-ondeletedmessages
No changes, but FirebasePluginMessageReceiver may need a default subclassable behaviour for onDeletedMessages, so that clients who already extend it are not required to implement.
It's a great plugin, being able to react to deletedMessages could be very useful : devices are not always online, and time_to_live pushes may be deleted