Closed GoogleCodeExporter closed 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
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
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
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
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
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
Thank you for the feedback. Closing.
Original comment by sype...@gmail.com
on 24 Sep 2011 at 8:26
Original issue reported on code.google.com by
saqibshe...@gmail.com
on 12 Sep 2011 at 1:22