Closed GoogleCodeExporter closed 9 years ago
Check out the JdSoft.Apple.Apns.Feedback.Test project. It shows you how to use
the
FeedbackService Object. basically you wireup the Feedback event to listen for
feedback objects which contain the timestamp and device token.
Are you listening to this event? Also, keep in mind the feedback service
doesn't
return anything if there's no feedback to report. Often you need to try and
send
notifications multiple times to a device token that has stopped accepting
notifications for your app before Apple will have feedback for you for that
device token.
Original comment by jond...@gmail.com
on 26 May 2010 at 2:31
Is there a workaround to reprocedure such feedback? Before i going to develop
with this solution i will
make sure that it works.
Also i try to add send a push from asp.net. Your test code mostly workung...
Only problem i have that
often the first message will send but never comes to iphone. If i simple send
again it comes.. any idea?
Original comment by fsdevpoi...@googlemail.com
on 26 May 2010 at 2:58
You can uninstall the app on your test device, but continue sending
notifications to
the device token that the app created when you installed it and registered for
receiving notifications. Send at least 3-5 notifications after uninstalling
the app
(and make sure your phone is set to globally receive notifications, and that
it's
connected to the internet by edge, 3g, or wifi before sending these). This
should
cause apple to create feedback for that device token when you run the
FeedbackService
again.
As for working from asp.net, there should be no problem or any difference as
long as
you have the right ports opened. So if the first notification isn't being
'sent',
you need to be more specific. Do you have to send EVERY notification twice, or
does
this just happen the first time you try and send a notification, and subsequent
ones
are fine? Please make sure you have the latest release as well.
Original comment by jond...@gmail.com
on 26 May 2010 at 3:27
When i have to check feedback? After each sent notifigation or from time to
time?
this just happen the first time you try and send a notification, and subsequent
ones
are fine. I use latest release
Original comment by fsdevpoi...@googlemail.com
on 26 May 2010 at 4:31
Check feedback from time to time. Really you should still read the Apple
documentation on push notifications, it describes how the Feedback service
works,
when you should check it, etc. Generally though, you may want to check every
hour or so.
http://developer.apple.com/iphone/library/documentation/NetworkingInternet/Conce
ptual/RemoteNotificationsPG/CommunicatingWIthAPS/CommunicatingWIthAPS.html
As for the first notification, there may be a race condition bug that still
exists.
I'll have to look closer, I think there's another issue about this that got
closed I
can reopen. Until that is fixed, a work around would be to just fire off a fake
notification the first time.
Original comment by jond...@gmail.com
on 26 May 2010 at 4:53
Ok i read it, thx.
Its very urgent for me. When did you think can you check it?
How can isend a fake notification?
Original comment by fsdevpoi...@googlemail.com
on 26 May 2010 at 7:01
you could do some pseudo code like:
//Have a global variable for the application
static bool sentFirstMessage = false;
//Now in your message sending logic:
notificationConnection.QueueNotification(myNotificationObj);
if (!sentFirstMessage) //Check to see if we've sent a message already
{
//If not, send the same notification a second time
notificationConnection.QueueNotification(myNotificationObj);
//Be sure to flag that we've got passed the current 'bug'
sentFirstMessage = true;
}
Original comment by jond...@gmail.com
on 26 May 2010 at 7:06
Thx, i try it.
Can you say any timeframe when you checking about this
bug?
I will really use this solution but this is very important to solve
before.
Original comment by fsdevpoi...@googlemail.com
on 26 May 2010 at 8:04
Considering there is a viable and easily implemented workaround for a bug that
may be
difficult to track down, I'm not in a rush to fix it.
Original comment by jond...@gmail.com
on 26 May 2010 at 8:06
Feel free to track down the bug yourself and post what you find fixes it.
That's
really the best way to go about this. Then I can incorporate your fix with the
project.
Original comment by jond...@gmail.com
on 26 May 2010 at 8:07
Its very strange. If i test your test commandline app the first message will
send but often not the 3th one.
Using same logic in asp but without loop (send only 1 notification) then mostly
first message dont comes
iphone
Original comment by fsdevpoi...@googlemail.com
on 26 May 2010 at 8:16
Original issue reported on code.google.com by
fsdevpoi...@googlemail.com
on 26 May 2010 at 8:34