HarunBahcel / apns-sharp

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

Does Feedback Service work on asp.net page, such as .ashx? #50

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I tried to implement the feedback service on asp.net website.

however, after "service.Run();", it didn't fire the events at all.

Should I do anything else? or it just can't work on a asp.net page?

Please kindly advice it, thanks a lot.

Jack

Original issue reported on code.google.com by jacklin0...@gmail.com on 12 Mar 2011 at 2:40

GoogleCodeExporter commented 8 years ago
It should work in asp.net, but keep in mind the page lifecycle here.  If you 
declare an instance of it on your page, it's going to get disposed of real 
quick.

There are techniques you could use to keep an instance alive in Global, and 
then keep your app alive (either by calling a page on it occasionally so it 
doesn't get unloaded, or there are other tricks to doing this).

Generally though I'd recommend doing things this way, asp.net is not really 
meant to run as a long running service...

Original comment by jond...@gmail.com on 15 Mar 2011 at 5:32

GoogleCodeExporter commented 8 years ago
I just found that the test feedback service from Apple doesn't work so far.
When I tried the production push notification & feedback service, it works as 
expected.

Hope it helps to whom would like to try push notification.

Also, big thanks to the author, you save my lots of time for this issue :)

best regards,

Jack

Original comment by jacklin0...@gmail.com on 19 Mar 2011 at 3:09

GoogleCodeExporter commented 8 years ago
Hi, Can you please share the code sample for implementing feedback service in 
.net?

Any help is appreciated as am new to APNS.

Thanks in advance

Original comment by sasirekh...@gmail.com on 17 Feb 2014 at 6:26