I am not getting anything return from the feedback server.
What steps will reproduce the problem? 1. Send push to a device token with no app installed on that device 2. Run Feeback test sample 3. Check for return
What is the expected output? What do you see instead?
at this line
//Get the first feedback
recd = apnsStream.Read(buffer, 0, buffer.Length);
recd is still 0, doesn't looking like anything coming. Looks to connect okay.
What version of the product are you using? On what operating system? the lastest download with Windows Server 2003
Please provide any additional information below.
Comment #1
Posted on Aug 17, 2009 by Happy BearI just run it again and noticed that I am getting this error
Position = 'apnsStream.Position' threw an exception of type 'System.NotSupportedException'
Comment #2
Posted on Aug 27, 2009 by Happy LionIf recd is 0 that means the server isn't sending any data and the connection should be closed. As per apple's specifications, you won't get any response from the server if there is no feedback. The server will close the connection.
Comment #3
Posted on Dec 22, 2009 by Happy Lion(No comment was entered for this change.)
Comment #4
Posted on May 1, 2010 by Helpful WombatHello everybody. I've installed on my iPhone ad-hoc version, so it means distribution one. I've downloaded apns-shart library and tried to test push notifications on that. I have all necessary certificates. I've succeeded to push notifications using test notification project and with this everything is fine. My problem is: when I've tried to use test feedback project it fetched needed device tokens, but when I've tried to launch it second time, it return 0 bytes. What ca I do to fix the problem.
Comment #5
Posted on May 2, 2010 by Happy Lion0 bytes means that there was nothing from the feedback server. Often the feedback server will not send out a UDID until you've tried sending it notifications a few times after that UDID does not want them anymore...
Comment #6
Posted on Dec 17, 2011 by Swift OxHi all!
I had same problem, to fix it add this try-catch sentence at the end of "Run()" method in the file FeedbackService.cs
try { //Clear our array to reuse it Array.Clear(buffer, 0, buffer.Length);
//Read the next feedback recd = apnsStream.Read(buffer, 0, buffer.Length); } catch (Exception ex) { recd = 0; }
Comment #7
Posted on Jan 28, 2015 by Massive CamelHi All,
Feedback server is return always recd is 0, if anyone can resolve this issue please let me know.
Status: WontFix
Labels:
Type-Defect
Priority-Medium