mblawrence / javapns

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

Device not receiving notifications although library reports no error #66

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Used both 1.x and 2.0 beta 3. There is no error on the server side but the 
application didn't receiving any notification. 
2.No network WIFI issue with client as other applications are receiving 
notifications successfully
3. Client side code is correct as in Settings --> Notifications application 
names is showing

What is the expected output? What do you see instead?
Iphone should have received the notification after several attempts or the API 
should report any error

What version of the product are you using? On what operating system?
Tried almost all the versions 1.61, 1.67,1.68,1.69 and 2.o beta 3

Please provide any additional information below.
Using jdk1.6 and windows 7

Original issue reported on code.google.com by saqibshe...@gmail.com on 12 Sep 2011 at 1:22

GoogleCodeExporter commented 8 years ago
Did you enable logging (see wiki)?  Could you copy-paste the entire output of 
the log here so we understand better what is happening?

Could you also provide a copy of the code you wrote for javapns 2.0 to send the 
notification?  Thank you!

Original comment by sype...@gmail.com on 12 Sep 2011 at 1:52

GoogleCodeExporter commented 8 years ago
Additional note:  I would also suggest you try 2.0 Beta 3 (rev 002)'s 
javapns.test.NotificationTest tool to diagnose the issue.  This test enables 
logging by default, so running the test will inevitably produce some kind of 
output that should be useful.

Original comment by sype...@gmail.com on 12 Sep 2011 at 2:58

GoogleCodeExporter commented 8 years ago
I am pasting the output of javapns.test.NotificationTest tool. It says that 
notification has been sent to device but device never received it

********************************************************************************
*******

0 [main] DEBUG javapns.devices.DeviceFactory  - Adding alert [Hello World!]
1757 [main] DEBUG javapns.communication.ConnectionToAppleServer  - Creating 
SSLSocketFactory
1793 [main] DEBUG javapns.communication.ConnectionToAppleServer  - Creating 
SSLSocket to gateway.sandbox.push.apple.com:2195
3095 [main] DEBUG javapns.notification.PushNotificationManager  - Building Raw 
message from deviceToken and payload
3098 [main] DEBUG javapns.notification.PushNotificationManager  - Attempting to 
send notification: {"aps":{"alert":"Hello World!"}}
3098 [main] DEBUG javapns.notification.PushNotificationManager  -   to device: 
712db61b2cb537767ec57a5b913267caa6d01998cff4d08b967b8d383d051fb2
3826 [main] DEBUG javapns.notification.PushNotificationManager  - Flushing
3826 [main] DEBUG javapns.notification.PushNotificationManager  - Notification 
sent
3826 [main] DEBUG javapns.notification.PushNotificationManager  - Closing 
connection

********************************************************************************
****

Please look into this issue. On device in settings --> Notifications my app 
name exists and i have opened it to make sure it gets register. Also there are 
no issues with WIFI port as other apps are receiving notifications 
successfully. The device i am using is Iphone 4G and OS version is 4.3.4

Original comment by saqibshe...@gmail.com on 13 Sep 2011 at 7:59

GoogleCodeExporter commented 8 years ago
From the log output you provided, the library appears to be behaving normally.  
Have you contacted the Feedback Service to check if your device token is 
getting listed there somehow?  Are you sure that your app code is written so 
that it will actually react to the type of notification you are trying to send? 
 If your app is open and you have no code to handle the notification, I've read 
in some places that the notification will simply be ignored.  Have you tried 
sending notifications while the app is not running, to see if iOS pops up the 
alert?

Beyond that, since there's no error on the library's side, I'm afraid I can't 
help any further... 

Original comment by sype...@gmail.com on 13 Sep 2011 at 2:18

GoogleCodeExporter commented 8 years ago
Have you figured out why your device was not receiving notifications?  May we 
close this issue?  Thank you!

Original comment by sype...@gmail.com on 21 Sep 2011 at 10:39

GoogleCodeExporter commented 8 years ago
Thanks dear yes i have figured out. It was due to certificate that i was 
generating though my profile. Thanks for the correspondence please close the 
issue

Original comment by saqibshe...@gmail.com on 24 Sep 2011 at 4:35

GoogleCodeExporter commented 8 years ago
Thank you for the feedback.  Closing.

Original comment by sype...@gmail.com on 24 Sep 2011 at 8:26