Java library that allows developers to push notifications to iOS devices (iPhone, iPod, iPad, etc.) through the Apple Push Notification Service using a simple yet powerful set of tools.
Questions tagged [javaapns]
30 questions
8
votes
1 answer
Java TLS socket : No trusted certificate found
Let me explain quickly what I'm trying to do. I'm trying to build my own Apple's Push Notification service in java (for testing purposes). This service works thanks to TLS socket.
I have a java client to create a TLS socket to send push…
Antek
- 1,167
- 3
- 10
- 18
7
votes
1 answer
Bug in the Amazon SNS Apple Push Notification Tutorial (Null Pointer Exception)
My goal end goal is to send push notifications to an iOS app via SNS. I am stepping through this tutorial: http://docs.aws.amazon.com/sns/latest/dg/mobile-push-apns.html.
I have added in my AWS credentials, and added in the corresponding apns…
miss.serena
- 1,170
- 1
- 11
- 28
4
votes
2 answers
What's the correct format for Java APNS certificate?
I'm using Java APNS (com.notnoop.apns, v0.2.3) to send Push Notifications to my iOS app. I'm creating the APNS service with the following lines:
private ApnsService createApnsService() throws IOException {
ApnsServiceBuilder serviceBuilder =…
miho
- 11,765
- 7
- 42
- 85
3
votes
0 answers
APNS production certificate not working
i am new bie in push notification and trying to apns push notification but it not working.
my code is
ApnsService service = APNS.newService()
.withCert(apns_keystore, apns_keystore_password)
…
dubey
- 341
- 1
- 2
- 9
1
vote
1 answer
Which certificate should be used on app Server for waking iOS app using Pushkit and APNS?
I am using Websocket in my iOS app for data transfer. But, since sometimes when the app is suspended in the background, the socket breaks. In that case, I use Voip push to iOS app to wake app up.
//called on appDidFinishLaunching
//register for…
Akaanksha
- 161
- 1
- 14
1
vote
0 answers
Unable to set header field "apns-push-type" in Apple Push Notification in javapns
I have a legacy code which send notifications to iOS.
public List sendNotifications(Constants.App app, List deviceTokens, String payload,
List userId, String sender, String appKey) {
…
Rishav Raj
- 11
- 1
1
vote
0 answers
PlatformApplicationDisabledException
My application shuts down sometime with the following error in the console:
PlatformApplicationDisabledException
I've reached out to aws service team to investigate what I was doing wrong in my program.
So, they have replied…
rajat singh
- 11
- 5
1
vote
0 answers
iOS MDM -- Sending MDM Push Notifications from Java?
I am working on a simple iOS Mobile Device Management (MDM) server in Java as a mental exercise and proof-of-concept. Up to now, I have a series of JAX-RS RESTful service endpoints that allow me to do:
Initial device enrollment
Initial MDM…
Shadowman
- 11,150
- 19
- 100
- 198
1
vote
0 answers
Error while connecting to APNS (https://api.development.push.apple.com/)
I am trying to connect to APNS (https://api.development.push.apple.com/) using HttpsUrlConnection (java code). I have downloaded the certificate from https://api.development.push.apple.com/ and added to java keystore.
CODE:
public class…
hacktiivist
- 47
- 7
1
vote
0 answers
org.springframework.http.converter.HttpMessageNotWritableException
I am using gson maven dependency and apns maven dependency (com.notnoop.apns version 0.2.3 which is creating this error, using version 0.1.6 is fine but some methods i want is not available here) and i want the response in json format only,…
Kaushik solanki
- 438
- 3
- 15
1
vote
1 answer
APNS not working overnight
I used to send notifications to iOS phones through my server.
My APNS certificate hasn't changed since December 2014, and is still valid.
However, I get, since yesterday, this error when the server tries to send any APNS notifications:
Caused by:…
Mik378
- 21,881
- 15
- 82
- 180
1
vote
1 answer
java-apns INVALID_TOKEN response
I'm using java-apns library for send push notification messages. I send token_id to APNS server and receive response INVALID_TOKEN. So my question is what algorithm APNS server use for this response? I think it would be better to check this token_id…
Iurii
- 1,755
- 8
- 24
- 38
1
vote
0 answers
iOS Notification - How to manage two app IDs with one P12 file
I have a notification project that is built for iPhone and iPad. So I have 2 app IDs = 2 applications on the Apple Store.
If I understand the official Apple Guide Lines…
hico
- 1,850
- 1
- 19
- 28
1
vote
1 answer
Unable to send push notification to iPhone
I am sending push-notification to i-phone using Java APNs. Am able to send notification to one app but am not able to send notification to other apps.
For first app (Successful sending push notification) am using
String json1=…
chetan
- 953
- 3
- 12
- 20
1
vote
0 answers
Apple push notifications delivery policy
I am working on an iphone messaging application so using APN Servers to send push notification to offline users (as whatsupp does).
I am using Enhanced Notification Format to connect APNs via an API (com.notnoop.apns 1.0.0.Beta7-SNAPSHOT…
Ahmet Karakaya
- 9,899
- 23
- 86
- 141