Comments (7)
Is there any advice or best practice for dealing with the problem of invalid device tokens? What even constitutes an "invalid" token?
All I can think of is using an Always reconnect policy, but that doesn't seem to be a good choice for a production environment.
from java-apns.
With the new support for enhanced push notification protocol, your ApnsDelegate
will be notified if a connection gets closed due to an invalid device token. ApnsDelegate#connectionClosed()
will be called with DeliveryError. MISSING_DEVICE_TOKEN
argument.
from java-apns.
Great! Is that available in the 0.1.5 download, or do I have to build from source myself?
from java-apns.
It's available in the 0.1.5 download (I recommend using maven or Ivy though). Don't recall if you need to enable the enhanced service in ApnsServiceBuilder
.
from java-apns.
For those who see this thread later:
In the 0.1.5 download, the default mode for ApnsServiceBuilder is to use "enhanced error-checking" mode. I did notice that the version of ApnsServiceBuilder in 0.1.5 has a bug that prevents you from disabling "enhanced error checking" mode; it was apparently fixed later (see 8002bb5)
from java-apns.
Thanks for bringing this up. Disabling enhanced error-checking mode will be available again in 0.1.6. I'll make a release soon. However, I'm considering breaking backward compatibility to fix some issues with the API in light of the new functionality.
from java-apns.
Now that I've updated our production environment to use 0.1.5 and put in an ApnsDelegate that just logs on connectionClosed(), I'm seeing a few closes due to INVALID_TOKEN. I understand that this can be caused by a development token being sent to the production pns server; is there any other potential cause of INVALID_TOKEN?
from java-apns.
Related Issues (20)
- Check if notification was sent HOT 3
- Notifications not being sent/ received on device
- Push Notifications with an APNs Auth Key HOT 1
- Not working in jdk 8
- Java-apns on Google App Engine HOT 1
- Problems With SSL Certificate HOT 4
- Queueing vs. pooling
- Alternatives to this library? HOT 1
- Sending Base64 encode image not working HOT 2
- Sending push-messages, but they not appear on devices (reports are ok).
- Getting Connection Resets from apns server HOT 2
- Sending same notification to multiple devices HOT 1
- Error while sending notification SSL Exception HOT 1
- Custom fields not arriving
- Plz,Help me. some times.... this error... Received fatal alert: protocol_version
- APN request header apns-collapse-id is not supported?
- Push Notifications not working for iOS 13 HOT 14
- Issues of integration feedbacktest
- how to batch send or full send? HOT 1
- java.net.SocketException: Connection closed by remote host HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java-apns.