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

Delegate not working VoipPush #340

Open
MrPallaBall opened this issue May 2, 2017 · 0 comments
Open

Delegate not working VoipPush #340

MrPallaBall opened this issue May 2, 2017 · 0 comments

Comments

@MrPallaBall
Copy link

Hi to all,
I had develop a service to push voip notifications and in it I had implemented a "Delegate Method" (it return a ApnsDelegate Object).

APNS.newService()
.withCert(voipcert , password)
.withDelegate(getDelegate())
.withAppleDestination(true)
.build()

private ApnsDelegate getDelegate() {
        return new ApnsDelegate() {
            public void notificationsResent(int resendCount) {
                log.info("resendCount=" + resendCount);
            }

            public void messageSent(ApnsNotification message, boolean resent) {
                log.info("Message sent. Payload={}" + message);
            }

            public void messageSendFailed(ApnsNotification message, Throwable e) {
                log.error("Message send failed. Message="+ message.toString() + " token=" + message.getDeviceToken().toString()
                                + " payload=" + message.getPayload().toString()
                                + " Throwable.getLocalizedMessage=" + e.getLocalizedMessage()
                                + " Throwable.getMessage=" +  e.getMessage());

            }

            public void connectionClosed(DeliveryError e, int messageIdentifier) {
                log.error("Connection closed. Message = " + e.toString() + " messageIdentifier = " + messageIdentifier);
            }

            public void cacheLengthExceeded(int newCacheLength) {
                log.error("cacheLengthExceeded " + newCacheLength);
            }
        };
    }

I uninstalled the application and I send a notification to application's device-token

Java-APNS not use Delagate Method when I send a voip notification to a device-token of uninstalled application.

What about it?

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

1 participant