JavaPNS is a Java library to send notifications through the Apple Push Notification Service
Questions tagged [javapns]
72 questions
22
votes
6 answers
Java APNS Certificate Error with "DerInputStream.getLength(): lengthTag=109, too big."
When I try to using java APNS to send the push notification to iOS, I got this error message:
com.notnoop.exceptions.InvalidSSLConfig: java.io.IOException: DerInputStream.getLength(): lengthTag=109, too big.
I already try converting the certificate…

user3479640
- 279
- 1
- 4
- 9
22
votes
3 answers
Maven: resource binary changes file size after build
I am using the appengine-maven-plugin to build my Java Google App Engine project.
I include .p12 certificates in a WEB-INF sub-folder
When I build my application, the filesize of the certificate increases by a few KB. This renders it invalid. I have…

sbsmith
- 600
- 1
- 5
- 16
12
votes
1 answer
Does APNS Feedback service no longer exist as per new APIs?
I was going through updated official APNS documentation and it clearly says,
All developers should migrate their remote notification provider servers to the more capable and more efficient HTTP/2-based API described in APNs Provider API.
But the…

DineshM
- 829
- 1
- 15
- 24
5
votes
0 answers
Apple Wallet pass balance update delay
We have implemented an API service in .NET that sends background notifications to Apple Wallet to update its balance, which in turn calls below to APIs of our…

Raghav Gupta
- 197
- 1
- 5
5
votes
0 answers
Openfire APNS plugin issue
I need to integrate Apple Push Notification Service to Openfire.
For that I had followed openfire-apns-plugin. But when I am executing mvn clean install command (last step), I am getting error. So, because of that openfire-apns.jar is not…

Nirav Dangi
- 3,607
- 4
- 49
- 60
5
votes
1 answer
IOS Push Notification java server side with error "Received fatal alert: certificate_unknown"
When i try to send a push notification to IOS by using 'ApnsService' on java, i got error as below:
com.notnoop.exceptions.NetworkIOException: javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown
at…

user3479640
- 279
- 1
- 4
- 9
4
votes
2 answers
Iphone emoji Unicode decode issue for push notification dispatch by APNs
My web service publish push notification to APNs and APNs send to destination IOS device.
When apns contain Unicode emoji on alert body push notification and Iphone os can't decode my Unicode emoji '\uD83D\uDE0A' app already kill.
Push notification…
user4856296
4
votes
2 answers
NoSuchMethodError exception on SSLSocketImpl.receivedChangeCipherSpec when using javapns in GAE
I am using javapns with Google App Engine. Everything was working fine until this morning. Now, it raises this exception:
java.lang.NoSuchMethodError: sun.security.ssl.SSLSocketImpl.receivedChangeCipherSpec()Z
at…

Montaner
- 522
- 5
- 16
4
votes
0 answers
APNS Handshake Failure from Scala
I'm trying to send a push notification to apple device (iphone) using Scala, and Notnoop APNS, but when i ran this code:
import com.notnoop.apns._
val service = APNS.newService().withCert("certfile.p12",…

chipz
- 704
- 1
- 6
- 11
3
votes
2 answers
Push notification issue for production server
I have created development and production certificates with Push Notification enabled. Everything works fine on test environment but when I try to test the development certificate on our production environment, it give me following error message…

kamlesh shingarakhiya
- 83
- 1
- 9
2
votes
0 answers
setting "apns-collapse-id" in apns header
I am very new to this concept, and I am trying to create a notification, which can be deleted or modified from server, by looking so I came across "apns-collapse-id". The problem is by setting this using the below code does not change the content of…

Michael I
- 21
- 1
2
votes
1 answer
java.nio.channels.ClosedChannelException HTTP/2 with jetty
I am trying to use HTTP/2 to send an apple notification to my device on production.
I am passing this -Xbootclasspath/p:/home/mohamed/Desktop/alpn-boot-8.1.9.v20160720.jar as a Default VM arguments in eclipse.
Here are the code which i am using…

mibrahim.iti
- 1,928
- 5
- 22
- 50
2
votes
1 answer
how to prevent APNS device token redundancy in database
I am using apns notification for my app, and for this i am storing the apns device token in my sql database.
The issue is that every time the user deletes or installs the app, it generates a new device token and this gets stored in the database,…

ViS
- 1,357
- 1
- 17
- 36
2
votes
2 answers
iOS MDM - How to close or stop connection after device responds back with valid response
We are building an iOS MDM server to manage iOS devices.
Below were the steps which were involved in enrolling an iOS device into the MDM server
Send enroll configuration
Perform SCEP
send MDM server certificate.
Create APNS certificate.
Send push…

Samreen
- 139
- 1
- 14
2
votes
1 answer
Apple Push Notifications not working from java webservice deployed in Linux
Tested java build with ios production certificate from local windows machines. It was working fine and the push notifications were sent successfully to iphone and ipad.Push notifications are done using javapns.
Deployed the same build in Linux…

Harish Kumar Kailas
- 419
- 1
- 5
- 10