cordova-plugin-firebasex
cordova-plugin-firebasex copied to clipboard
FEATURE: Enable implementation of onDeletedMessages()
Feature request
- A description of the problem you're trying to solve, including why you think this is a problem
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."
- An overview of the suggested solution
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
- Use case: why should this be implemented?
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
- If the feature changes current behavior, reasons why your solution is better
No changes, but FirebasePluginMessageReceiver may need a default subclassable behaviour for onDeletedMessages, so that clients who already extend it are not required to implement.
- Relevant links, e.g
- see links above
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
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