★ TouchArcade needs your help. Click here to support us on Patreon.

Push Notification problem

02-12-2010, 05:29 PM
#1
Joined: Jan 2009
Location: Canada
Posts: 463
Push Notification problem

Me again, now that I've fixed my UDP problems, I have an APNs problem.


My server is written in C#, and I've essentially lifted the code straight from here:
http://stackoverflow.com/questions/1...e-push-server/

I seem to be correctly authenticating my SSL connection with the APNs server, but when I send data to device, it doesn't get it. Which is annoying, because while I'm trying to debug, I'm also getting alerts from my Notifications app hooked up to my RSS feeds... it's like it's taunting me!


I'm definitely connecting to apple's sandbox servers, and I have development provisioning, and I've followed the device token manually through its creation on the device through to our database and push notification handling code. How many more points of failure could there be?


Anyway, has anyone else had a problem with simply not receiving push notifications before? Did you have byte order problems, developer vs. distribution certificate, bad device token, message size too large, etc...

if you've ever had any problem ever with APNs, I'd love to hear a detailed explanation of what was wrong and how you got through it.

I'm pulling my hair out over here.

Developer, Cat in a Box Games!
Blue Defense: Second Wave! - $2.99
Blue Attack! - $1.99

Fastar! - $1.99
Red Conquest! - $0.99
02-12-2010, 10:15 PM
#2
Joined: Nov 2009
Location: Ireland
Posts: 29
I upvoted your question on SO in the hopes that it'll be seen and get the right answer.

This is one of those 'is your computer plugged in' questions, but do you have notifications enabled specifically for your app under settings on your iPhone?
02-12-2010, 10:25 PM
#3
Joined: Oct 2008
Location: Vancouver, BC
Posts: 1,652
Great to see you figured out the problem John, I can't wait for Red Conquest online multiplayer.

 /l、
(゚、
 l、 ~ヽ
 じしf_, )ノ Inconspicuous Group Cat?
02-13-2010, 10:56 AM
#4
Joined: Jan 2009
Location: Canada
Posts: 463
Quote:
Originally Posted by Dave Sims View Post
This is one of those 'is your computer plugged in' questions, but do you have notifications enabled specifically for your app under settings on your iPhone?
yeah, it says notifications are on globally, and specifically for Red Conquest, alerts and sounds are enabled.

I also get push notifications from the Notifications app, so I know I have the connectivity - it must be something specific to my server or app.

Developer, Cat in a Box Games!
Blue Defense: Second Wave! - $2.99
Blue Attack! - $1.99

Fastar! - $1.99
Red Conquest! - $0.99
02-13-2010, 12:30 PM
#5
Joined: Nov 2009
Location: Ireland
Posts: 29
I haven't used APN with C# so after that I'm no use, but you could check out this project: http://code.google.com/p/apns-sharp/