Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feedback did not return any information . #16

Closed
fishtomorrow opened this issue Jul 15, 2010 · 4 comments
Closed

Feedback did not return any information . #16

fishtomorrow opened this issue Jul 15, 2010 · 4 comments

Comments

@fishtomorrow
Copy link

Where I try to run my code to get feedback information, nothing return . Why ? Can some advice be given ? My code is shown bellow .

ApnsService apn = APNS.newService().withCert("_dev_key.p12", "_")
.withFeedbackDestination("feedback.sandbox.push.apple.com",2196).withSandboxDestination().build();
apn.start();
Map a= apn.getInactiveDevices();
System.out.println ( a.size() );

Thanks .

@notnoop
Copy link
Owner

notnoop commented Jul 16, 2010

The returned feedback information contain the device token of the devices that had the app deleted from the iphone (or probably disabled push notification as well).

To actually have a phone show, you would need to register the notification for an app, delete it, and then send it a push notification.

@fishtomorrow
Copy link
Author

Thank you very much for your explaination. But I did register the develement certificate and unistall it and push notification, but nothing is given to me. Is there a way to find whether any feedfack informaton produced on APNS .
I find a advice on internet which says I should run "InstallCert.java" . I did it, but
get a exception as bellow. You can find it in "http://blogs.sun.com/andreas/entry/no_more_unable_to_find".

//run java programe
java InstallCert feedback.sandbox.push.apple.com:2196
System.getProperty(java.home) D:\DEV\Java\jre6
Loading KeyStore D:\DEV\Java\jre6\lib\security\cacerts...jks==changeit
Opening connection to feedback.sandbox.push.apple.com:2196...
Starting SSL handshake...

javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at InstallCert.main(InstallCert.java:91)

Server sent 3 certificate(s):

I alse download and install the jce package from sun and install them in my jre/lib/security. But nothing helps. I now really have no idea.

@notnoop
Copy link
Owner

notnoop commented Oct 7, 2010

It seems that it's a problem with the Sandbox servers. The problem was described independently on a mailing list thread with a work around:

The problem comes from the "Sandbox"
APNs Feedback server, probably a bug. Here is the solution if anyone
has the same problem:

Create a dummy app id in the program portal, enable development push
notifications on it Create and download the associated provisioning
profile Create a new xcode project, and invoke the
registerForRemoteNotificationTypes method on start. Install the dummy
app on your device. At this point, you should have two DEVELOPMENT
apps running on your device: the original app and the dummy app. Both
should be registered to receive push notifications. Uninstall the
original app, and try to send a push notification to that app. Invoke
the feedback service, and you should receive data back.

To resume, the Sandbox Feedbacks server needs TWO DEVELOPMENT Apps
registered on the SAME iPhone to work.
This manipulation is not necessary for the production phase as the
"Production" APNs Feedback server works fine.

@notnoop
Copy link
Owner

notnoop commented Mar 17, 2011

closing.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants