Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offer callback for push-message outcome(error/success) #198

Open
GoogleCodeExporter opened this issue Apr 23, 2015 · 1 comment
Open

Offer callback for push-message outcome(error/success) #198

GoogleCodeExporter opened this issue Apr 23, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Currently you need to actively poll push-notification outcomes via:
===
PushQueue.getPushNotifications().{getFailedNotifications,getSuccessfulNotificati
ons()}

Polling for these status has drawbacks:
- new push-notifications might be added meanwhile (inconsistent view)
- polling is bad for getting feedback on time (you have to define polling 
interval)

A much nicer feedback channel would be to include a callback:
===
PushNotificationManager.sendNotification(.... Callback callback) {

 // something went fine
 callback.success(pushedNotification)
 ...
 // something went wrong
 callback.failed(exception, pushedNotification)



Original issue reported on code.google.com by maldana....@gmail.com on 10 Sep 2013 at 9:13

@GoogleCodeExporter
Copy link
Author

It will be great if this is addressed in new release. I am waiting for this for 
logging to my splunk.

Original comment by arun.geo...@gmail.com on 21 Nov 2013 at 1:42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant