ankurkaps / javapns

Automatically exported from code.google.com/p/javapns
0 stars 0 forks source link

report shows success but no notification on device #213

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

run the code
BasicConfigurator.configure();
Push.alert("message", "/CertificateSandbox12345.p12", "12345", false, 
"4268a5f9bf3bb920eedba36888597e6ed0d3a369a4674178a1b6324a10846839");

What is the expected output? What do you see instead?
output:
0 [main] DEBUG javapns.notification.Payload  - Adding alert [message]
1532 [main] DEBUG javapns.communication.ConnectionToAppleServer  - Creating 
SSLSocketFactory
1594 [main] DEBUG javapns.communication.ConnectionToAppleServer  - Creating 
SSLSocket to gateway.sandbox.push.apple.com:2195
5926 [main] DEBUG javapns.notification.PushNotificationManager  - Initialized 
Connection to Host: [gateway.sandbox.push.apple.com] Port: [2195]: 
7be8c2a2[SSL_NULL_WITH_NULL_NULL: 
Socket[addr=gateway.sandbox.push.apple.com/17.172.232.45,port=2195,localport=559
01]]
5942 [main] DEBUG javapns.notification.PushNotificationManager  - Building Raw 
message from deviceToken and payload
5943 [main] DEBUG javapns.notification.PushNotificationManager  - Built raw 
message ID 1 of total length 72
5944 [main] DEBUG javapns.notification.PushNotificationManager  - Attempting to 
send notification: {"aps":{"alert":"message"}}
5945 [main] DEBUG javapns.notification.PushNotificationManager  -   to device: 
4268a5f9bf3bb920eedba36888597e6ed0d3a369a4674178a1b6324a10846839
6463 [main] DEBUG javapns.notification.PushNotificationManager  - Flushing
6463 [main] DEBUG javapns.notification.PushNotificationManager  - At this 
point, the entire 72-bytes message has been streamed out successfully through 
the SSL connection
6463 [main] DEBUG javapns.notification.PushNotificationManager  - Notification 
sent on first attempt
6463 [main] DEBUG javapns.notification.PushNotificationManager  - Reading 
responses
6473 [main] DEBUG javapns.notification.PushNotificationManager  - Closing 
connection

means everything is ok

What version of the product are you using? On what operating system?
JavaPNS_2.2.jar OS X 10.9.2

Please provide any additional information below.

using PHP script notifications is working as expected, the only difference is 
that php uses .pem and java uses .p12
certificate attached

Original issue reported on code.google.com by ForeverN...@gmail.com on 6 Mar 2014 at 12:05

Attachments:

GoogleCodeExporter commented 8 years ago
resolved ))
for php I've exported both cert and key
for java I've exported cert only and it works )

issue can be closed

Original comment by ForeverN...@gmail.com on 6 Mar 2014 at 12:33

GoogleCodeExporter commented 8 years ago
Closing, as per OP request.

Original comment by sype...@gmail.com on 30 Sep 2014 at 1:07