kaylavanhaverbeck / javapns

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

FeedBackService is not working #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

Using 1.6 version of javapns, the feedback service is not working and always 
return 0 device 
without error.

If i call the feedback service using the method in the following link, the 
feedback service works 
properly :
http://code.google.com/p/javapns/issues/detail?id=5&can=1

Here is a snippet of my code :
List<Device> device = 
FeedbackServiceManager.getInstance().getDevices("feedback.push.apple.com", 
2196, 
"/ValidPath/PushCertificatsProduction.p12", "myPassword", 
SSLConnectionHelper.KEYSTORE_TYPE_PKCS12);

System.out.println("device count = "+device.size());

Note that i have no problem to send notification with this p12 certificate. 
Only the service 
feedback is not working.

Original issue reported on code.google.com by julien.r...@gmail.com on 22 Apr 2010 at 8:24

GoogleCodeExporter commented 8 years ago
Are you getting an error or just not getting any devices returned?

How are you verifying that there are devices to be returned?

(This is good... because I've never gotten any devices either, but I also don't 
have a way to show that I _should_ 
be getting devices back.)

Original comment by idbill.p...@gmail.com on 22 Apr 2010 at 9:18

GoogleCodeExporter commented 8 years ago
I've added a 'WorkingFeedbackExample' wiki page.

Original comment by idbill.p...@gmail.com on 22 Apr 2010 at 9:34

GoogleCodeExporter commented 8 years ago
No error and no device returned.

I do a simple test :
First call the feedback service with javapns 1.6 : return nothing, no device, 
no error
Then just after that call the old fixed feedback service : 76 devices returned 

I'm pretty sure there is a problem with the new javapns 1.6 feedback service...

Original comment by julien.r...@gmail.com on 22 Apr 2010 at 9:43

GoogleCodeExporter commented 8 years ago
You have an old feedback service?!
The one in the original javapns.jar that I had was all commented out.

Please post it. 

Original comment by idbill.p...@gmail.com on 22 Apr 2010 at 9:45

GoogleCodeExporter commented 8 years ago
It's the original feedbackservice that i had fixed following this :
http://code.google.com/p/javapns/issues/detail?id=5&can=1

See the attached file, specially the SSLConnectionHelper with the ThrustManager 
part. 

Original comment by julien.r...@gmail.com on 22 Apr 2010 at 9:49

Attachments:

GoogleCodeExporter commented 8 years ago
I've modified the code in svn so that the apple feedback cert is loaded 
automagically.

Could you do a check out and try it out?

Original comment by idbill.p...@gmail.com on 23 Apr 2010 at 1:15

GoogleCodeExporter commented 8 years ago
I've uploaded a java1.6-testing.jar so you don't have to check the project out.

Original comment by idbill.p...@gmail.com on 23 Apr 2010 at 1:19

GoogleCodeExporter commented 8 years ago
[2010-04-23 08:53:01,591]:[DEBUG]:[javapns.back.FeedbackServiceManager] - 
Found: [6]

:-)

Good job it works with java1.6-testing.jar

Thanks

Original comment by julien.r...@gmail.com on 23 Apr 2010 at 6:55

GoogleCodeExporter commented 8 years ago

Original comment by idbill.p...@gmail.com on 23 Apr 2010 at 3:54