w250697116 / apns-sharp

Automatically exported from code.google.com/p/apns-sharp
0 stars 0 forks source link

Feedback service didn't return any data #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run the notification test client and sent notification to wrong device 
token 
2. Run the Feedback test client you will see the nothing returned
3. Try again

What is the expected output? What do you see instead?
Should it be return something about the previous send errors ?

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

Please provide any additional information below.
I haven't worked Feedback test client, it's returning allways 0. 

Original issue reported on code.google.com by fya...@gmail.com on 12 Mar 2010 at 10:33

GoogleCodeExporter commented 8 years ago
I learned that Apple feedback service doesn't work on ad-hoc mode. Sorry, 
newermind 
this issue. Please close this issue. 

Thank you

Original comment by fya...@gmail.com on 12 Mar 2010 at 11:42

GoogleCodeExporter commented 8 years ago
Let's not close this quite yet - I have the same "issue" and need to understand 
if
it's user error/misunderstanding on my part or something more fundamental...

Can Feedback be tested in sandbox mode with a "real" app in development (not ad 
hoc
distribution, but currently only in development)?  If so, I assumed from 
reading the
feedback docs that sending alerts to a valid device that had uninstalled my app 
would
generate some feedback to tell me that the app was no longer installed.  But I 
tested
that scenario and still received no feedback.  I also tested just having the 
app turn
off all the notification options.  My next test would the one above - bad 
device id,
but that isn't a real-world scenario for me (users uninstalling an app would 
be).

Anybody have feedback working?

Original comment by craighea...@gmail.com on 23 Mar 2010 at 1:26

GoogleCodeExporter commented 8 years ago
P.S.  Maybe there is an "intelligent" timing factor involved?  After 
uninstalling,
testing and the later reinstalling my test app received the last of my test 
messages
(after a significant delay).  Does the APNS server have some threshold of 
failure
before it generates feedback?

Original comment by craighea...@gmail.com on 23 Mar 2010 at 2:35

GoogleCodeExporter commented 8 years ago
P.P.S. I think I've answered my own question.  The Apple docs for the Feedback
Service indicate that it requires "repeated failed delivery attempts" in order 
to
generate feedback.  So I probably have not created enough failures to warrant
feedback notification.  Actually makes perfect sense since a few failed attempts
could be due to anything and taking action on intermittent failures would be 
bad. 
Thanks - this is a very useful tool.

Original comment by craighea...@gmail.com on 24 Mar 2010 at 1:12

GoogleCodeExporter commented 8 years ago
@craigheartwell in apple's dev forums it was pointed out to me that you need at 
least 
2 apps that support push to be running in the same apns mode (sandbox or 
production) 
in order for feedback to work. So what you would need to do to test sandbox 
feedback 
is create a second app with a different appid and leave it installed on the 
device 
after uninstalling your primary app for feedback to work. As it was explained 
to me, 
when the last push enabled app is removed from the device, the device NEVER 
contacts 
the APNS server ever again to save battery. This means that the device never 
reports 
to APNs that the app was removed and APNs can't send feedback for the app. We 
decided 
to just move to production to test feedback rather than build a second app for 
no 
reason. Hope that helps.

Original comment by redisant on 26 Mar 2010 at 1:30

GoogleCodeExporter commented 8 years ago
Great post @redisant

This makes sense, albeit a bit weird.  Usually I just use production instead of 
sandbox 
anyways for testing apns and feedback.  I've never had problems that way.

Original comment by jond...@gmail.com on 27 Mar 2010 at 6:36