imnimit / javapns

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

Sandbox notifications reach devices, but production notifications do not #68

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.java
Push.alert("Hello World!1", "d:/nightshtestCertificates.p12", "unicom", true, 
"8bedae234e4c4d77f4c8ae4a3fab41a1fbf1d4184ed0a4b8aaa8e38afe4a8465");

2.log
16:53:45,181 DEBUG javapns.devices.DeviceFactory:111 - Adding alert [Hello 
World!1]
16:53:45,181 DEBUG javapns.communication.ConnectionToAppleServer:87 - Creating 
SSLSocketFactory
16:53:45,213 DEBUG javapns.communication.ConnectionToAppleServer:139 - Creating 
SSLSocket to gateway.push.apple.com:2195
16:53:45,603 DEBUG javapns.notification.PushNotificationManager:92 - 
Initialized Connection to Host: [gateway.push.apple.com] Port: [2195]: 
110c31[SSL_NULL_WITH_NULL_NULL: 
Socket[addr=gateway.push.apple.com/17.149.35.166,port=2195,localport=2366]]
16:53:45,603 DEBUG javapns.notification.PushNotificationManager:367 - Building 
Raw message from deviceToken and payload
16:53:45,603 DEBUG javapns.notification.PushNotificationManager:249 - 
Attempting to send notification: {"aps":{"alert":"Hello World!1"}}
16:53:45,603 DEBUG javapns.notification.PushNotificationManager:250 -   to 
device: 8bedae234e4c4d77f4c8ae4a3fab41a1fbf1d4184ed0a4b8aaa8e38afe4a8465
16:53:46,385 DEBUG javapns.notification.PushNotificationManager:266 - Flushing
16:53:46,385 DEBUG javapns.notification.PushNotificationManager:269 - 
Notification sent on first attempt
16:53:46,385 DEBUG javapns.notification.PushNotificationManager:108 - Closing 
connection

3.

What is the expected output? What do you see instead?
i install the software from appstore  or ad -hoc  with prodcuation mode can not 
receive notice

but i install the software from imac with development mode is ok

What version of the product are you using? On what operating system?

javapns_2

Please provide any additional information below.

i make the ssl file with same way

in  keychain access export the p12 file

when i deploy the software to appstore i userd distribution provisioning 
profiles 

Original issue reported on code.google.com by xida...@126.com on 22 Sep 2011 at 8:59

GoogleCodeExporter commented 8 years ago

Original comment by sype...@gmail.com on 22 Sep 2011 at 2:16

GoogleCodeExporter commented 8 years ago
A couple of things to check, just to be sure:

* Are you using a different device token when using the production server?  It 
should not be the same as for the sandbox server, even though it's the same 
device.

* Have you followed the procedure precisely the procedure on this page to 
generate your production certificate:  
http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Concept
ual/RemoteNotificationsPG/ProvisioningDevelopment/ProvisioningDevelopment.html

* The following page talks about the same kind of issue you are describing, 
with a list of steps that seem to fix the issue:  
http://www.techjini.com/blog/2009/10/22/how-we-fixed-production-push-notificatio
ns-not-working-while-sandbox-works/

Please write back if you make any progress regarding this issue.  Thanks!

Original comment by sype...@gmail.com on 23 Sep 2011 at 4:33

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago

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

GoogleCodeExporter commented 8 years ago
thank you very much for sype...@gmail.com

your comment sloved my problem

i reset my iphone system

reinstall the software

is  ok   

Original comment by xida...@126.com on 26 Sep 2011 at 1:29

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

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