I followed this tutorial for push notification.
http://mobiforge.com/developing/story/programming-apple-push-notification-services.
In my didFinishLaunchingWithOptions i have called registerForRemoteNotificationTypes.
I have created SSL certificate installed in my keychain.
And now trying to send it using PushMeBaby.
But I haven't received any push message.
Asked
Active
Viewed 1,049 times
0

saurabh
- 530
- 1
- 8
- 22
-
Try using Urban Airship. – Moshe Jul 07 '11 at 12:02
-
how to debug? how we can conclude error at server side? I have also tried running simple php script. found at http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12 but no luck – saurabh Jul 07 '11 at 12:13
-
Have you checked Wheather your app is properly registered for Push Notifications? You can check that at Settings->Notification section. – Mahesh Jul 07 '11 at 12:20
-
yeah it has registered successfully...for the first time only it asked permission. – saurabh Jul 07 '11 at 12:24
-
Check these links for your server side code 1)http://stackoverflow.com/questions/1052645/apple-pns-push-notification-services-sample-code 2)http://blog.boxedice.com/2009/07/10/how-to-build-an-apple-push-notification-provider-server-tutorial/ – Mahesh Jul 07 '11 at 12:30
-
Are you using the development certificate, or the final release one? If you are using the development one, you can only use that with a device that you are using for development (ie not an ad-hoc build). If you are using an ad-hoc distribution, you have to use the release certificate. – Nick Bull Jul 07 '11 at 12:59
-
No I am signing with developer profile – saurabh Jul 07 '11 at 13:18
2 Answers
0
Have you followed following items ?
if you are using Wifi then the port number 2195 and 2196 must be opened.
Send the Device token to server or store Device token server for sending push notification.
Check this Link , provides all the details with PHP script.

V.V
- 3,082
- 7
- 49
- 83
-
hi i tested for port using telnet gateway.sandbox.push.apple.com 2195 and i am also able to establish connection using SSL.I referred this http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12 – saurabh Jul 07 '11 at 13:16
-
Also One more item, Are you using Production or Development certificate , according to that You need to set Sandbox true or false. Check this thing. and check your apple certificate is Push notification enabled. – V.V Jul 11 '11 at 03:37
-
its Development certificate even provision-profile used for code signing is developer's profile. – saurabh Jul 11 '11 at 11:24
0
Surprisingly the same code worked out for iPod. Is it because iPhone was jail-broken????

saurabh
- 530
- 1
- 8
- 22