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

Check if notification was sent #348

Open
raderio opened this issue Nov 20, 2017 · 3 comments
Open

Check if notification was sent #348

raderio opened this issue Nov 20, 2017 · 3 comments

Comments

@raderio
Copy link

raderio commented Nov 20, 2017

How to check if notification was sent successfully?

com.notnoop.apns.ApnsService service = APNS.newService()
                .withCert(...)
                .withAppleDestination(true)
                .build();
ApnsNotification response = service.push(token, payload);

response should be null? it throw an exception?

I am asking because I never get an error, but sometimes notifications are not coming.

@raderio raderio changed the title Check is notification was sent Check if notification was sent Nov 20, 2017
@cthinkel
Copy link

+1

@tuxedo0801
Copy link

Same issue here:

For example, I have 5 device tokens. Assume that the 3rd token ist invalid, all others are valid.

My Expectation: 4 out of 5 devices receive a notification ( = all but device with invalid token number 3)
Actuall behavior: Only the first two devices get a notification. Starting with the 3rd token, which is invalid, no other valid token works.

The library tells me, all notifications are successfully sent. I can ask the service for invalid invalid devices, but I do not get any result. Neither before sending the notification, nor after sending the notification.

Any hints on how to overcome this?

@sandeeprewa
Copy link

sandeeprewa commented Jan 31, 2018

Same issue, Once It encounters Invalid device token, it stops processing subsequent device token.
Is there any way at least to know if notification was un-succesful. ApnsNotification does not have any useful method wrt above case.

Input will be appriciated

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

No branches or pull requests

4 participants